How to remove index.php from your Magento site URL

Learn how to remove the “index.php” character string from the web address of your Magento store — your Magento site URL. This method works only if mod_rewrite is enabled; however, if you are a Liquid Web client, this is enabled by default.
Read How to Improve the Security of Your Magento Store.
Get fast, reliable hosting for WordPress
Power your site with the industry’s fastest, most optimized WordPress hosting
Steps to remove index.php
- From the Admin Panel, select System > Configuration.

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

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

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

- Click Save Config.
- Flush your Magento cache using the directions provided in How to flush your Magento cache.
- 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.
Additional resources
Change the Magento 2 admin login url →
Update your admin login URL to add an extra layer of security.
How to change base urls in Magento 2 →
Change base URLs to update your store’s web address and keep pages loading correctly.
How to issue a reindex in Magento 2 →
Reindex Magento 2 to refresh store data and keep pages displaying correctly.




