Categories: Magento

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 http://www.example.com/index.php/ 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.

  • 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).

  • Step 3 :Enable the setting by changing the option to Yes and save the settings by pressing button.

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]

Rohan pathak

Recent Posts

What Is a Progressive Web App? Why Would You Need One?

App usage is growing steadily without showing any signs of slowing down. Hence, it is no surprise that mobile applications…

1 year ago

7 Most Popular Paid Online Advertising Strategy

As the world has grown more digital, businesses have adapted themselves. An effectual adaptation includes online advertising. Offline advertising styles…

1 year ago

The Importance of User-Centered Design in Mobile App Development

Step into a world where apps dance to the user's tune. Picture Instagram, a photo-sharing sensation that swept the globe.…

1 year ago

Healthcare Mobile App Development: A Complete Guide for Founders

COVID-19 has led to a digitalization of lifestyle. As patients are taking their mental and physical health more seriously, healthcare…

1 year ago

Exploring Diverse WordPress Theme Niches: A Comprehensive Guide

Introduction WordPress, an immensely popular content management system (CMS), powers over 40% of the internet. What makes WordPress even more…

1 year ago

8 Awesome Blog Content Ideas for Movers to Skyrocket the SEO

For moving companies trying to capture their market share amidst stiff competition, a tip or two about what they can…

1 year ago