• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Custom 404 page

Mr Lucky

Well-known member
#1
I have set .htaccess to show my own error 404:

Code:
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 http://mysite.com/404.html
ErrorDocument 500 default
However it still just shows the default.

Can anyone please help with how to do this?

Thanks
 

Mr. Goodie2Shoes

Well-known member
#5
but I still wonder why it doesn't work via the .htaccess
That would be because these lines
Code:
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
tells Apache to parse the request to index.php if there's a chance of a 404 response.