DirectoryIndex index.html index.htm index.php <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / # Redirect /blog to homepage RewriteRule ^blog/?$ / [R=301,L] # Redirect non-existing requests to index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ index.php [L] # Handle errors properly ErrorDocument 403 /index.php ErrorDocument 404 /index.php </IfModule>