Knowledge Base Navigation
KB Article: Error Documents with .htaccess
|Article:||Error Documents with .htaccess|
|Date Added:||04-27-2004 5:11:16|
Setting error documents with htaccess files
First and fore most make sure your server supports the file htaccess most Linux based servers do. Ok lets get dirty...
Open up your .htaccess file and enter the below changing certain parts to fit your needs.
ErrorDocument [error number] [path]
The Error number is the ID that is universal over the Internet. E.g. A file not found is a 404 message. The path is the file you would like to be directed to when this error occurs. Here is a list of the main errors that can occur:
Error in Client
400 Bad Syntax
402 Not Used (Payment Granted)
404 Not Found
Error in Server
500 Internal Error
501 Not Implemented
503 Gateway Timeout
You do not have to name the file after the name of the error, this is just to make it easy.
Current rating: 7.82 by 180 users
|Please take one second and rate this article...
|Not a Chance||1||2||3||4||5||6||7||8||9||10||Absolutely|