GeekPoint Forum Subscribe to Forum RSS WhoIsHostingThis.com
Please register or login on GeekPoint Forum.
It takes only a minute to register, & moreover,
majority of the ads shown will be removed!
Login OR Register
Register a Free Account
Reply
 
LinkBack Thread Tools
Old 11-06-2007   #1
Shadab Shadab is offline
Web Developer
Shadab's Avatar
Join Date: Feb 2007 Location: Bhopal Posts: 2,752 iTrader: 100% (1)
Arrow 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.
  Reply With Quote
Old 11-22-2007   #2
Calimejo Calimejo is offline
Newbie
Join Date: Nov 2007 Posts: 2
Default Re: Custom Error Pages Using .htaccess

Great Tuto Shadab

tanks
  Reply With Quote
Old 12-28-2007   #3
Shadab Shadab is offline
Web Developer
Shadab's Avatar
Join Date: Feb 2007 Location: Bhopal Posts: 2,752 iTrader: 100% (1)
Default Re: Custom Error Pages Using .htaccess

Welcome Calimejo !


My periodic table contains only 1 element : the element of Surprise.
  Reply With Quote
Old 12-31-2007   #4
Armaan143 Armaan143 is offline
Promotion Team Leader
Armaan143's Avatar
Join Date: Aug 2007 Location: Sujangarh (Rajasthan,India) Posts: 1,553
Default Re: Custom Error Pages Using .htaccess

Thanks for this bro.
I used it at my blog
Create Custm Error Pages using .htaccess file | WMR Zone
  Reply With Quote
Old 07-28-2008   #5
Shadab Shadab is offline
Web Developer
Shadab's Avatar
Join Date: Feb 2007 Location: Bhopal Posts: 2,752 iTrader: 100% (1)
Default

Welcome. (after a time interval of 7 months. LOL).

Btw, you made a spelling mistake, in the word "Custm" (custom)
But i guess it's too late to make that change !

My periodic table contains only 1 element : the element of Surprise.
  Reply With Quote
Reply
Thread Tools