11-06-2007
|
#1 |
| Web Developer Join Date: Feb 2007 Location: Bhopal Posts: 2,746 iTrader: 100%
(1) | Custom Error Pages Using .htaccess The conventional / standard error pages that a web server outputs,
gives little info to the end user, and can be a reason for the user to leave your website.
So, using a .htaccess file, uploaded to your document root,
you can specify custom pages to show up, when an error occurs.
Heres how.
In your .htaccess file,
you have to put and entry like this : Code: ErrorDocument Error_Code_Number Path/to/your/custom/error/file Some sample entries are as follows : Code: ErrorDocument 400 /400.htm
ErrorDocument 401 /401.htm
ErrorDocument 403 /403.htm
ErrorDocument 404 /404.htm
ErrorDocument 500 /500.htm
These custom error pages can also serve as advertising spots. My periodic table contains only 1 element : the element of Surprise. |
|
| |