Removing index.php from Magento URL’s

This should be the default behaviour, if you ask me, however no one asked me.

Log in to the admin panel, and navigate:

System > Configuration > Web > Search Engine Optimization

Use web server rewrites is the option we’re looking for. Lastly, create an .htaccess file, with the following in it:

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

Users of ZF should be quite familiar with an .htaccess like this. That’s it, job done!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s