Customer Support Center


Setting Up your own ErrorDocument Message


An "ErrorDocument" is the message that you see when you try to go to a web page that does not exist.  The default ErrorDocument message looks like this:

File Not Found

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

(where xxxxxx.html is the name of the incorrect web page that you tried to visit).

The above ErrorDocument is not very pretty, and you may wish to make one of your own.   This is how you do it:

Make a web page, name it badurl.html and upload it into the same directory as your web pages..

If your account was first created in 1999 or later, that should be all you need to do. If your account was created in 1998 or before, check the directory structure of your site, to see if you have a file in your root directory (e.g., if your site is named xyz.com, then the name of the root directory would be xyz) with the name .htaccess.   If you do not have such a file there, you will need to create the file with a simple text editor (such as MS Notepad for Win95 users or Simple Text for Mac users).   If the file already exists, you will need to edit it with a simple text editor.   You will need to add the following line to the .htaccess file:

ErrorDocument 404 /badurl.html

Third, upload the .htaccess file to your root directory, using an FTP program.

It's that simple!  


 

Copyright © 1999 - 2001 MidAir Design, Inc. All rights reserved.