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