BIZhub.com

How To Create A Custom Error Message:
. . . and "What do those error numbers mean"?

NOTE: This is for a UNIX system.

If you don't want to fool around with this, consider our hosting services. Our servers have "Custom Error Messages" as a "BUILT-IN" feature!

As you surf the web, I'm sure you occasionally encounter error messages telling you that the web site or file your are looking for does not exist. It may look boring and non-informative, something like this. The most common errors are usually 404 - File not found or 500 - Internal Server Error.


Here is how to get rid of those error messages!
NOTE: This works on UNIX systems with APACHE servers.


  1. Open a new file in a text editor (like notepad).


  2. Type the following and insert your own .htm file names. (Note the space prior to the /). :
    errordocument 404 /yourfile.htm
    errordocument 500 /yourfile.htm


  3. Save this file as .htaccess.


  4. Design your .htm file for the error page. Our's looks like this. You could even put a counter on this page to give you a quick idea about how many error messages your visitors are getting.


  5. Using a FTP program, transfer the .htaccess file to the main directory of your website. Transfer the .htm file to either your main directory or whatever directory you specified in the .htaccess file.


That's it! Your new error page should be ready. Good luck!


Here are some other error messages you may encounter:
   . . . and what to do about them!


403 Forbidden Pages
     You found a page you were not meant to see. This is usually a password protected area. If you entered a password and user name, check your spelling.


404 Not Found - (mentioned above)
     The page you are looking for is not here. You could have misspelled the URL, or the author may have deleted it, or moved it to another location. If you really want to find this page, check your spelling first. Next, try another suffix - if the URL ends in .htm, try using .html. Next you can try hacking away at the url. For example, if the URL is

"http://www.companyname.com/widgets/electronics/micro.htm",

try

"http://www.companyname.com/widgets/electronics/".

If the webmaster does not have an index (default) file in that directory, you will receive a list of all the pages/files in that directory.


500 Internal Server Error - (mentioned above)
     Something probably is not configured right on the server side.


503 Service Unavailable
     The page you want is not available at this time, but it may still be there. Try again later.


Host Unknown
     Whoops! The party you are looking for skipped town and did not leave a forwarding address.


File Contains No Data
     You probably caught them in the act of updating their files. Try again later.


Too Many Connections--Try Again Later
     If you are patient, try clicking on refresh/reload until you retrieve the page - or get tired.



Home | Web Site Design | Web Site Hosting | Web Site Domains | Web Site Marketing
© 2002, Maknet Corporation