Remove index.php From URL In Magento



Magento provides very good url rewrite method, some times we wants to remove the index.php from the url Suppose your url is http://www.store.com/index.php/contacts and you wanted to remove index.php from this then here is the solution.

Magento is a feature rich and robust ecommerce CMS which provides very good url rewrite facility, You can manage it from the admin panel as well, suppose there is index.php is coming with your url and you want to remove that because it is not good for the SEO purpose as well. Removing of the index.php from the url is very simple here in this post I am trying to describe how you can get rid of index.php from the actual url. Just follow the steps given below:

Suppose your url is http://www.store.com/index.php/contacts and you wants to remove index.php from here is the solution.

Step 1. First of all, Check that your apache module “mod_rewrite” should be enabled. You can check it from apache httpd.conf file.
Step 2. Then login to Magento admin panel
Step 3. Navigate to the System -> Configuration -> Web -> Search Engines Optimization -> Use Web Server Rewrites as per the screenshot given below:
URL Rewrite In Magento

Step 4. Now Just Select “Yes” from the selection list and Save as per the screenshot given below:
URL Rewrite In Magento

And, you are done. Now, index.php has been removed from your Magento shop URL. Just keep reading and enjoy the Magento Coding.