Magento home page 301 redirect from index.php

In order to do Search Engine Friendly (SEO) URL’s in magento. Its required that there must be a 301 redirect from http://www.site.com/index.php to http://www.site.com/. Alghtough for safety reason this changes wouldn’t take place from browser based URL. The reason behind that is magento always support two kind of URL

i) http://www.site.com

ii) http://www.site.com/index.php/storename

But from Search Engine Point of view we must need to use internal 301 redirect in magento. Here are the steps to internal 301 redict in magento

Login to magento admin then

go to System>> Configuration

Under Web tab there is a section “Auto-redirect to Base URL ” enable it to 301 redirect . Now your home page wouldn’t show index.php there.

 

If you want to hide Store code in magneto frontend based ULRs then simply select “Add Store Code to Urls ” to No.

Enable SEO friendly URL in magento

Under same location to System>> Configuration

Under Web tab. There is a section “Search Engine Optimization” simply select

Use Web Server Rewrites ” to “Yes”

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...