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

Modern Toys, Magical Moments: Why the Best Toy Shop in Noida Is More Than Just a Store

When it comes to children, there’s one universal truth: the right toy can spark imagination, build skills, and make memories…

6 months ago

Rediscovering Joy: A New Era of Creativity & Comfort in Toy Stores

In today’s digital age, where screens and gadgets dominate our children’s lives, there’s something heartwarming about a well-loved plush toy…

6 months ago

Unboxing Imagination: Discovering the Joy of Play at a Toy Store in Noida

In a world dominated by screens and fast-paced routines, it’s easy to forget the simple magic of a toy in…

6 months ago

Imagination Unboxed: Discover Joy at the Toy Shop in Delhi

In the heart of Delhi’s vibrant streets lies a world where imagination meets innovation — the magical universe of toys.…

6 months ago

Play with Purpose: Discovering the Ultimate Toy Store in Noida

When was the last time a toy truly amazed you—not just as a product, but as a thoughtful tool for…

6 months ago

From Tears to Toys: Exploring Modern Childhood through Delhi’s Favorite Toy Shop

In the digital age, the way we experience childhood has changed, but the essence remains the same—imagination, exploration, and joy.…

6 months ago