PDA

View Full Version : php error pages



teedee
05-17-2004, 03:23 AM
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

ErrorDocument 404 / 404.php

And tried different content of page even a simple


<?php

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

(I am using Opera browser)

ProWebUK
05-17-2004, 06:19 AM
Originally posted by teedee
I have added a .htaccess with the line

ErrorDocument 404 / 404.php


ErrorDocument 404 /404.php

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

Chris

teedee
05-18-2004, 01:12 AM
still makes no difference :(

ProWebUK
05-18-2004, 08:06 AM
Originally posted by teedee
still makes no difference :(

Try using the full URL and see if that makes any difference..

ErrorDocument 404 http://yourdomain.com/404.htm

Chris

Tim
09-01-2005, 03:54 AM
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