Go Back   AlterVista | Free hosting with php and mysql support > Support > FAQs

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-10-2010, 09:24 AM
Administrator
 
Join Date: Feb 2010
Posts: 22
Default Can I customize the error pages? How?

Yes, you can easily customize the error pages for the error 404 (page not found) and 401 (access denied).

You have to create the pages that you want to show to your web site's users and call them "not_found.html" for the error 404 and "access_denied.html" for the error 401. These pages have to be placed in the root of your web space.

You can also use php scripts called respectively "not_found.php" and "access_denied.php". You can use the variables $_GET['missing_document'] and $_GET['missing_host'] to detect the page and the domain asked by the user.

If you want to do more, customizing also the other error pages, you can use the directive ErrorDocument as described here (http://httpd.apache.org/docs/2.2/mod...#errordocument).
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT. The time now is 02:25 AM.