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. wink Create Custm Error Pages using .htaccess file

Categories : Scripts, Server, Tools, Webmasters Tags :

Trackbacks & Pingbacks
Comments
January 6, 2008

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

Posted by Shadab
Leave a comment

(required)

(required)


SEO Powered by Platinum SEO from Techblissonline