Permanent 301 redirection of /home to / in magento

What is home page in magento

Each magento based website by default call a CMS page  which is for home page.\

If you want to edit home page of  magento then you need to edit a CMS page that comes under CMS >> Pages. Where URL key is home.

Why /home is accessible from magento based website by default

Since there  is always a page which has URL key /home .Due to this fact you can access same page by calling /home in URL as well. For example i can access URL http://www.abc.com and  http://www.abc.com/home

What is the Issue if we have both page accesible from magento based website

 In order to have proper SEO for your website then two different URL shouldn’t show same content on page . So if http://www.abc.com  and http://www.abc.com/home displayed same page then its not good from SEO point of view so its better if someone open http://www.abc.com/home it should show 301 permanent redirect to home page of website.

How to setup 301 redirect from /home to / in magento

Step 1: Login to admin section

Step2: Go to Catalog >> URL rewrite Management

Step 3:Click on “Add new rewrite rule” From this section select “Custom” from “Create URL Rewrite ” select box

Step 4: Under “URL Rewrite Information” Make sure

Type : Custom

ID Path : /home

Request Path : home

Target Path : http://www.abc.com

301_redirect

301_redirect

Redirect : Permanent (301)

Step 5: Click on Save button and clear the cache

You are done now

 

Image: 301_redirect.png

The following two tabs change content below.

Chandra Shekhar

GCP Architect
Chandra Shekhar Pandey is Google certified Cloud engineer, I am Magento2 Trained developer. Having huge experience in designing cloud solution. I have around 12 years of experience with world enterprise IT companies and fortune 500 clients. During my architecture design I am always caring about high availability, fast performance and resilient system. From the programmer background I have huge experience in LAMP stack as well. Throughout my carrier I have worked on Retail, E-Learning, Video Conferencing and social media domain. The motive of creating cutehits was just to share the knowledge/solutions I get to know during my day to day life so that if possible I can help someone for same problems/solutions. CuteHits.com is a really a very effort for sharing knowledge to rest of the world. For any query/suggestion about same you can contact me on below details:- Email: shekharmca2005 at gmail.com Phone: +91-9560201363

Latest posts by Chandra Shekhar (see all)

You may also like...