Page 1 of 1

404 Page if a PHP page doesn't exist (IIS)

Posted: Mon Feb 23, 2009 8:59 am
by evolution
Hi,

I have an app running on PHP5 on IIS on a Win2k3 server.

I set up a custom 404 page in IIS to display if a page isn't found.

If I try to browse to a directory which doens't exist, the cutom 404 page is shown - this is great.

However, if I try to hit a php page which doesn't exist, I get the standard default 404 page instead of the custom version.

Can anyone tell me what I'm missing?

Thanks in advance.

Ally

Re: 404 Page if a PHP page doesn't exist (IIS)

Posted: Mon Feb 23, 2009 12:13 pm
by LanceEh
This is just a guess, but maybe the default is .html so when it looks for a php custom file it can't find one.

Re: 404 Page if a PHP page doesn't exist (IIS)

Posted: Tue Feb 24, 2009 3:15 am
by evolution
Thanks for your help Lance, but I don't think that's it. The custom error page is "error.php".