May 26, 2013
kalpesh

Magento remove index.php from URL

In Magento remove index.php from URL using below steps. It will convert your URL from

http://www.example.com/index.php/blah

to

http://www.example.com/blah

1.) In Magento Admin > System > Configuration > Web > Search Engine Optimization, change the value of Web Server Rewrites to Yes

Make sure your web server rewrite module is enabled. If you are using apache as your web server on Linux, you can check it by going to /etc/apache2/mods-enabled/rewrite.load, if rewrite.load is present there it means your rewrite module is enabled. If not, you will need to copy rewrite.load from /etc/apache2/mods-available/ and paste it at /etc/apache2/mods-enabled/ location. Then reload the apache by running service apache2 reload.

2.) Check the file permission of .htaccess, it should be present in Magento root directory and readable by server.

3 Comments

  • it is not work in IIS 7 please share any solutions

  • i try this but not work, probably reason of server IIS 7.5
    can you please also mention what is magento run on IIS server ?
    it is also help full to us.

  • Thank you very much for this article. The solution is good – it’s working.

Leave a comment

 

Welcome to my Blog

Kalpesh MehtaHelping Magento developers in their day-to-day development problems since 2011. Most of the problems and solutions here are my own experiences while working on different projects. Enjoy the blog and don't forget to throw comments and likes/+1's/tweets on posts you like. Thanks for visiting!

Certifications