We use cookies to understand how you interact with our site, to personalize and streamline your experience, and to tailor advertising. By continuing to use our site, you accept our use of cookies and accept our Privacy Policy.

Your Digital Commerce Experts
Nexcess Logo

How to remove index.php from your Magento site URL

September 10, 2019

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.

 Read How to Improve the Security of Your Magento Store.

  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 inFrontend drop-down list, click YesThough 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 your Client Portal.

Jason Dobry