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”

Related posts:

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... Read More about Chandra Shekhar

Latest posts by Chandra Shekhar (see all)