DirectoryIndex index.php index.html index.htm RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] ErrorDocument 403 /index.php ErrorDocument 404 /index.php