Can I customize my error messages?
If you prefer not to have the standard Reliaval error messages displayed
when someone gets a "File not Found" error message, you can create custom error
messages.
Create a htaccess file and follow the
directions below:
Custom error messages are configured using the ErrorDocument directive, which
is followed by the HTTP response code and a message or URL.
Messages in this context begin with a single double-quote character ("), which
does not form part of the message itself. Apache will sometimes offer
additional information regarding the problem/error.
URLs can begin with a slash (/) for local URLs, or be a full URL which the client can resolve. Examples:
ErrorDocument 500 http://www.domain.com/error/errorfile.html
ErrorDocument 404 /home/susername/publci_html/error/errorfile.html
ErrorDocument 401 /subscription_info.html
ErrorDocument 403 "Sorry can't allow you access today
Note that when you specify an ErrorDocument that points to a remote URL
(ie. anything with a method such as "http" in front of it), Apache will send
a redirect to the client to tell it where to find the document, even if the
document ends up being on the same server. This has several implications,
the most important being that the client will not receive the original error
status code, but instead will receive a redirect status code. This in turn
can confuse web robots and other clients which try to determine if a URL is
valid using the status code. In addition, if you use a remote URL in an
ErrorDocument 401, the client will not know to prompt the user for a password
since it will not receive the 401 status code. Therefore, if you use an
"ErrorDocument 401" directive then it must refer to a local document.