XF 1.4 Custom 404 page

Mr Lucky

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

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?


Mr. Goodie2Shoes

Well-known member
but I still wonder why it doesn't work via the .htaccess
That would be because these lines
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.