[thelist] PHP 404 Errors...

Mike King mike.king at redroom.co.uk
Wed Sep 6 09:39:57 CDT 2000


Hello,

Just wondering whether it's possible to get php on NT4/IIS to use a custom 
404 page?
e.g.

If you go to this invalid PHP page
http://pearshape.com/nopage.php

A nasty error revealing the path of the file appears.
But if you go to a nonexistent ASP page
http://pearshape.com/nopage.asp

you'll get the custom 404 error page.
Not sure whether it makes any difference but I'm using the ISAPI version of 
PHP4.02

I know I can add some HTML into the front and back of the error messages in 
the ini file, but I'm after it using the IIS info.

Cheers
mk





More information about the thelist mailing list