While building this site I got some 404’s when I activated “pretty-urls”.

What was the problem? Well, the .htaccess was not readable nor writeable. After 2 seconds of chasing monkey’s in my head I found out the problem. There was no htaccess at all!

A few minutes I found out my perfect htaccess. After adding the .htaccess file to the server it worked like a “charm”

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