Home >> Knowledge Base 
Search:     Advanced search
Browse by category:



Custom Error Pages

Add comment
Views: 446
Votes: 0
Comments: 0
To use custom error pages create a .htaccess file in the www directory in your home dir. with the following lines (or add them if you already have a .htaccess file for something else):

Code:

ErrorDocument 400 /error/400.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 500 /error/500.html


And then create the error directory with your custom files in it with the above names.

There are a few others, but these are the most common.

400 = Bad request. The Web server is not configured or capable of responding to certain URLs or request types.

403 = Access forbidden. The webmaster doesn't want users to see a file listing in directories without default documents.

404 = Document not found.  The webserver couldn't find the page the browser requested.

500 = Internal server error. The webserver was not able to process the request, most likely a problem with a cgi script.
Others in this Category
document Where can I find more help on the control panel?
document Change pop3 email account password
document Enabling php 5 on your domain
document How to show the files in a directory without a index page
document How to prevent hotlinking of your images