Create Custm Error Pages using .htaccess file
Posted by
Armaan 31 December, 2007
The default error page created by your hosting provider can be reason for the user to leave your website.
You can also create error pages from your cPanel. ( If you have this fearure enabled)
Or you can create it by using .htacces
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 http://www.example.com/400.htm ErrorDocument 401 http://www.example.com/401.htm ErrorDocument 403 http://www.example.com/403.htm ErrorDocument 404 http://www.example.com/404.htm ErrorDocument 500 http://www.example.com/500.htm
These custom error pages can also serve as advertising spots. 
Categories :
Scripts, Server, Tools, Webmasters
Trackbacks & Pingbacks
- Pingback by Custom Error Pages Using .htaccess - Webmaster Forum on December 31, 2007 @ 5:59 am





The blog post is titled “Create Custm Error…”. Correct the spelling of ‘Custom’.