You can customize any error pages, such as 404, (not found) or others, your visitors might encounter. They can be replaced with personalized text, or a redirection to another URL, either local or external. This is done by using an ErrorDocument command. Here are some examples :
ErrorDocument 404 /my404message.html
ErrorDocument 404 http://mylogin.free.fr
ErrorDocument 403 /accessrefused.html
This command must be in a .htaccess file. The file must be in the directory to which the error messages need to be redirected. This is usually the root directory of the website, although not necessarily.