Go Back   Webmaster Forum > Development > Web Development
REMOVE the ads below !
Reply
 
LinkBack Thread Tools
  # 1 (permalink)
Old
Web Developer
Posts: 2,246
Join Date: Feb 2007
iTrader: (0)
Location: Bhopal (MP, India)
Arrow Custom Error Pages Using .htaccess - 11-06-2007

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 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.


[This brief tutorial is written by Shadab]

Thanx,
Shadab.


My periodic table contains only 1 element : the element of Surprise.
Reply With Quote
  # 2 (permalink)
Old
Newbie
Posts: 2
Join Date: Nov 2007
iTrader: (0)
Re: Custom Error Pages Using .htaccess - 11-22-2007

Great Tuto Shadab

tanks
Reply With Quote
  # 3 (permalink)
Old
Web Developer
Posts: 2,246
Join Date: Feb 2007
iTrader: (0)
Location: Bhopal (MP, India)
Re: Custom Error Pages Using .htaccess - 12-28-2007

Welcome Calimejo !



My periodic table contains only 1 element : the element of Surprise.
Reply With Quote
  # 4 (permalink)
Old
Promotion Team Leader
Posts: 1,467
Join Date: Aug 2007
iTrader: (0)
Location: Sujangarh (Rajasthan,India)
Re: Custom Error Pages Using .htaccess - 12-31-2007

Thanks for this bro.
I used it at my blog
Create Custm Error Pages using .htaccess file | WMR Zone
Reply With Quote
  # 5 (permalink)
Old
Web Developer
Posts: 2,246
Join Date: Feb 2007
iTrader: (0)
Location: Bhopal (MP, India)
07-28-2008

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




vBulletin®, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. | SEO by vBSEO | Skin developed by vBStyles.com