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

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
evolution
Forum Newbie
Posts: 2
Joined: Mon Feb 23, 2009 8:53 am

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

Post 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
User avatar
LanceEh
Forum Commoner
Posts: 46
Joined: Tue Feb 17, 2009 11:53 am
Location: Florida

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

Post 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.
evolution
Forum Newbie
Posts: 2
Joined: Mon Feb 23, 2009 8:53 am

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

Post by evolution »

Thanks for your help Lance, but I don't think that's it. The custom error page is "error.php".
Post Reply