How to Remove index.php from Magento URLs.?

Magento is one of the most spectacular feature rich platform built specifically for online shopping. All the functionality are supported with communities and thousands of experts online. Magento offers SEO friendly URL’s too and removing index.php from Magento URL’s is another important part of on-page SEO URL structure. Here we are going to define all the ways in which you can Remove index.php from Magento URLs.

Create SEO Friendly Magento URLs using these Steps:

Suppose you have Magento store with URL’s and want to remove the index.php then use the following steps for clear the issue from Magento admin panel.

  • Step 1 : First of all login to Magento admin panel with right credentials and navigate to System>Configuration from the top navigation menu respectively.
  • Magento remove index.php from from admin area

  • Step 2 :On clicking you will be forwarded to product configuration page and then hover to the Web tab simultaneously clicking it to move on Search Engine Optimization section. In the Use Web Server Rewrites column default mode is no (Disable mode).
  • Enable SEO friendly options in Magento Admin

  • Step 3 :Enable the setting by changing the option to Yes and save the settings by pressing button.
  • Mageno admin remove index.php from base URL

This whole process needs to be complemented with htaccess for removing the index.php from URL’s

Magento remove index.php htaccess

Now as you have allowed rewriting settings from the Magento admin then we need to complement them by adding the respective htaccess code for Magento index.php remove. This files needs to be created at the root files to get it precisely effective in removing the index.php from Magento URLs.

If your Magento store is installed in root (public_html) of the Web hosting then use below code:

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

If your Magento store is installed in a subfolder demo(public_html/demo) than use like this:

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

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *