I am trying to make a custom error page by editing the .htaccess file. But after editing and saving the file .htaccess, I do not get my custom error page. Instead I get the standard error message

Not found
The requested URL /hello.html was not found on this server

I am using Apache2 server.

ErrorDocument 404 "<H1>Page not found</H1>"

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy