How to Remove index.php from url in Magento?

Magento is a fantastic platform for selling online, arguably the best, but there is one thing that has always frustrated as an SEO. That index.php directory in the URL of ALL internal pages. They are bad for SEO, bad for site structure and consistency.

To remove index.php from URLs follow the below steps:

Step 1: Log in to your Magento admin panel.

Step 2: Go to System -> Configuration -> Web.

Step 3: From Search Engine Optimisation tab Use Web Server Rewrites select YES.

SEO web

Step 4: Make sure your Secure and Unsecure base urls should end with “/”.

Step 5: Now edit your .htaccess ( under your Magento root folder ) and paste the following code.

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

 If you face any problems or need our professional services, please email us at [email protected]

Join our Newsletter

Never miss the latest offers, voucher codes and useful articles delivered weekly in your inbox.