php error pages

teedee

Verified User
Joined
Oct 30, 2003
Messages
140
I have a client who wants to use php error pages but they don't seem to work....

I have added a .htaccess with the line
Code:
ErrorDocument 404 / 404.php

And tried different content of page even a simple

PHP:
<?php

echo 'This 404 page works';
?>
and nothing seems to work, any ideas ?

(I am using Opera browser)
 
teedee said:
I have added a .htaccess with the line
Code:
ErrorDocument 404 / 404.php

Code:
ErrorDocument 404 /404.php

/404.php is the path - / is not a breaker or anything like that :)

Chris
 
PHP:
ErrorDocument 500 /err_500.php
ErrorDocument 404 /err_404.php
ErrorDocument 401 /err_401.php
ErrorDocument 403 /err_403.php

that should it do

don't use 404.php but err_404.php
 
Back
Top