Yes. You can redirect your visitors to a certain page
when an error occurs, including page not found (error 404)
and internal server error (error 500, generally caused by
a problem on a cgi script). On sites hosted with Linux/Apache
just add two lines to the ".htaccess" file on your "html"
directory similar to these examples:
ErrorDocument 404 http://www.mydomain.com/not_found.htm
ErrorDocument 500 http://www.mydomain.com/cgi_error.htm
This can be useful to handle broken links, scripts that are
being tested, etc. Instead of getting a generic error
message, the visitor will get the page you specified.
NOTE: Be careful not to change existing lines on the ".htacess" file
since that may affect other functions such as the Frontpage extensions.
|