It is currently Tue Oct 17, 2017 1:08 pm


All times are UTC




Post new topic Reply to topic  [ 1 post ] 

Do you find this article helpful?
Yes 75%  75%  [ 3 ]
No 25%  25%  [ 1 ]
Total votes : 4
Author Message
 Post subject: How to: Set your custom 404/403 error page
PostPosted: Tue Jun 20, 2006 8:16 am 
Support Tech
Support Tech

Joined: Thu Mar 23, 2006 1:07 pm
Posts: 238
Our web hosting control panel gives you the option to set your custom 404 error page. You can do this from the Subdomain Manager - there you can set a custom 404 error page for each subdomain.

You can however set your own custom error pages using .htaccess as well. Here is how you can do this - create an .htaccess file (or use the existing one) and put the following line in it:

Code:
ErrorDocument 404 /error404.php


Now when a visitor tries to open a non-existing page, he will be brought to the error404.php page. You can also set a custom 403 (Forbidden) page like this:

Code:
ErrorDocument 403 /error403.php


Keep in mind however that by default all pages (including the error pages) return code 200 on our servers. You can read how you can change this in this tutorial.

_________________
Cheers,
Steve
Support Team Supervisor

Before asking a question, please read the F.A.Q.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011