.htaccess 404 for all page except homepage

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ – [L,R=404]
ErrorDocument 404 /404.html

Leave a Comment

Your email address will not be published.