Anagoge
Senior Member
I'm trying to use .htaccess to create a custom 404 page but it's not working. I've got this in it currently:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.theworkof\.co\.uk [nc]
RewriteRule ^(.*)$ http://www.theworkof.co.uk/$1 [R=301,L]
ErrorDocument 404 404.html
ErrorDocument 500 404.html
Is it because of the rewrite commands? I've tried using "/404.html" too.
The Work Of Neil Martin - The sky's the limit... is the link to the error page. http://www.theworkof.co.uk/fakepage.html link to nonexistant page, which results in a 500 Internal Server Error.
Thanks for the help.
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.theworkof\.co\.uk [nc]
RewriteRule ^(.*)$ http://www.theworkof.co.uk/$1 [R=301,L]
ErrorDocument 404 404.html
ErrorDocument 500 404.html
Is it because of the rewrite commands? I've tried using "/404.html" too.
The Work Of Neil Martin - The sky's the limit... is the link to the error page. http://www.theworkof.co.uk/fakepage.html link to nonexistant page, which results in a 500 Internal Server Error.
Thanks for the help.