custom errordocuments NOT .shtml

Apver

New member
Joined
Jan 19, 2004
Messages
3
As a user (with no root access), is there any way to use errordocuments that are not .shtml? for example, php?

I have found ways to still use php headers and footers but was curious as to how to do it, and if possible to do as a user.
 
Last edited:
Create a .htaccess file in your public_html containing the following:
Code:
ErrorDocument 500 /error.php
ErrorDocument 404 /error.php
ErrorDocument 401 /error.php
ErrorDocument 403 /error.php
Feel free to add additional ErrorDocument's for other error numbers.

Oh and, make sure the output of error.php is at least 512 bytes or MSIE won't display it.
 
Back
Top