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
Redirect : Permanent (301)
Step 5: Click on Save button and clear the cache
You are done now
Image: 301_redirect.png
Chandra Shekhar
Latest posts by Chandra Shekhar (see all)
- Best practices for micro service design - January 23, 2022
- Spring Boot - January 23, 2022
- Java - January 23, 2022
Recent Comments