Magento: How to remove index.php from URL?

In your Magento shop URL, if you see “index.php” and wanted to remove it then here is the solution.

– First of all, apache module ‘mod_rewrite‘ should be enabled. Check apache’s httpd.conf file.
– Then login to Magento admin panel
– Go to System -> Configuration -> Web -> Search Engines Optimization -> Use Web Server Rewrites
– Select ‘Yes‘ from the selection list
– Save

And, you are done. Now, index.php is gone from your Magento shop URL.

Hope this helps. Thanks.