i am trying to show an custom error message when a page is not found and on my .htaccess i added a line like this:
ErrorDocument 404 error/404.html
but this just shows me 404.html on the screen instead rendering the 404.html page and if i write it like this
ErrorDocument 404 /error/404.html
than it gives me an error
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Is there another way to do this to show the actual error html page ? Thank you, Daniel!
URLs can begin with a slash (/) for local web-paths (relative to the DocumentRoot), or be a full URL which the client can resolve.httpd.apache.org/docs/2.2/mod/core.html#errordocument - showdevErrorDocument 404 /site/error/404.html? - anubhava