How to Remove index.php from URLs in Magento

by | Aug 2, 2013 | 0 comments

  1. Change website configurationGo to System > Configuration > Web > Search Engine Optimization. Change ‘Use Web Server Rewrites’ to YES and save.
  2. Edit the .htaccess file

If your Magento store is installed in root (public_html) then add this to the end of the .htaccess file:

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 (public_html/store) then add this to the end of the .htaccess file:

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

0 Comments

Submit a Comment

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

elan creative

We’re like the in-house website design and support team you always dreamed of, able to tell your story like nobody else, and focus on your bottom line along with you….

Elan Creative
hello@elancreative.studio

freelance-website-designer s

QUOTE

Get a free quote for your website design project:

Privacy Overview
Elan Creative webdesign Haarlem

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.