The [tt]ErrorDocument[/tt] directive tells Apache where to serve error pages from. For example:
[tt]ErrorDocument 404 /my-custom-404.html[/tt]
would tell Apache to serve [tt]<your web root>/my-custom-404.html[/tt] each time it encounters a 404 error.
However otherwise its simple to either define it as danielhozac describes, OR even! you can write it as a "one" line of html in the httpd.conf as in:
ErrorDocument 404 <http><head><title>My Four Oh Four</title></head><body>Sorry you have come to a 404 page, please use your back button to return ....</body></html>
And you can use inline formatting, !there is a restriction on the length of the line though!.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.