Skip to main content
Magento 2

Magento 2 – Remove index.php from the URL

By September 8, 2016September 29th, 2017No Comments

Magento 2 - web design

Removing index.php from your Magento 2 website is easy. You don’t need to manually alter your .htaccess file, but to enable Web Server Rewrites within Magento.

Remove index.php

To change your site from;

mymagentowebsite.com/index.php

mymagentowebsite.com/index.php/category.html

to

mymagentowebsite.com/

mymagentowebsite.com/category.html

 

Login in to your Magento 2 admin area and find;

Stores > Configuration > Web > Search Engine Optimization > Use Web Server Rewrites

Then select Yes, as shown in the screengrab below.

Magento 2 - removing index.php

Your site URLS will now look much cleaner and it should improve your SEO.

Happy Magentoing!

Andrew Taylor

A senior UI designer with over 25 years of web design and web development experience working for some of the largest companies in the UK. An expert in all things Magento and WordPress.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.