Site: US UK AU |

How to remove index.php from your Magento site URL

How to remove index.php from your Magento site URL


This article shows you how to remove “index.php” from your web address of your Magento store. This method works only if mod_rewrite is enabled; however, if you are a Nexcess client, this is enabled by default.


  1. From the Admin Panel, select System > Configuration.

  2. From the Configuration menu, in the General section, click Web.

  3. In the Search Engines Optimization section, from the Use Web Server Rewrites drop-down menu, click Yes.

  4. In the Secure section, from the Use Secure URLs in Frontend drop-down list, click Yes. Though this step is not strictly necessary, it will make your site more secure.

  5. Click Save Config.

  6. Flush your Magento cache using the directions provided in How to flush your Magento cache

  7. Check your website, which should now lack “index.php” in the URL. If it is still present, repeat the procedure, or contact our Support Team as directed below.

For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.

Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How to flush your Magento cache
Added on Tue, Mar 1, 2016
What is Turpentine?
Added on Thu, Aug 28, 2014
How to improve Magento maintenance mode
Added on Mon, Feb 24, 2014
How to back up your Magento 1 store
Added on Thu, Oct 18, 2018
How to configure CDN access for Magento
Added on Wed, May 16, 2018
What are some useful Magento scripts?
Added on Mon, Oct 13, 2014
How to improve the security of your Magento store
Added on Wed, Nov 12, 2014
What are the benefits of dedicated IP addresses?
Added on Thu, Jan 14, 2016
How to purchase Nexcess shared hosting plans
Added on Mon, Jan 4, 2016
How to change your Magento 1.x password
Added on Wed, Nov 30, 2016