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 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
UK: +44 (0)121 288 3449
NL: +31 (0)20 893 2923

freelance-website-designer s

QUOTE

Get a free quote for your website design project: