Custom Error Message Pages

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am having an issue with php and IIS6 in that I want a custom error page to  
display when a page isn't found (error 404).  If I do a test and enter  
anything ending with .php it returns the "default", bog standard IE / IIS  
error page.  All other instances (.gif, .htm, <foldername> etc) route to the  
custom error page.

What I need to know is where do I tell php the location of the custom error  
page to ensure it displays the custom 404 page rather than the default one?

Any help appreciated


Re: Custom Error Message Pages

Hash: SHA1

Christopher Pettet wrote:

Quoted text here. Click to load it

PHP does not care about custom error page locations: webservers do. Please
re-read the documentation for Apache, boa, IIS, or whatever webserver you
are running.

- --  
- ----------------------------------
Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
Proudly running Debian Linux with 2.6.12-1-686 kernel, KDE3.5.0, and PHP
5.1.2-1 generating this signature.
Uptime: 22:46:55 up  1:22,  1 user,  load average: 1.16, 0.80, 0.64

Version: GnuPG v1.4.2 (GNU/Linux)


Re: Custom Error Message Pages

Can you please explain why it works for everything EXCEPT .php extensions?

Try these three links and you'll see what I mean... <- works fine <- displays the default 404 <- works fine

Quoted text here. Click to load it

Site Timeline