Forum Moderators: coopster
Here is the header response I get:
Date: Mon, 19 Nov 2007 01:26:22 GMT
Server: Apache
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
Keep-Alive: timeout=15, max=74
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html
404 Not Found
(I'm posting as an Apache guy. Hopefully, a real PHP person can be more helpful.)
Jim
Will give you a nice error page with a great bit of text ;)
Well maybe you want to change the html...
Seeing as you are using Apache why not use the ErrorDocument to do it properly and not try to have a page that returns correctly also issuing a 404 response? i.e.
ErrorDocument 404 /path_to_404.php
<edit>
After my smart reply...you need to make sure that the 404 page has enough content. As IE uses its own error page for pages that dont have a content of more than 250 bytes or something like that (google for teh exact amount, as I cant remember, but it is small).
This shouldnt be an issue...unless you actually use my code as above.
[edited by: PHP_Chimp at 7:15 pm (utc) on Nov. 19, 2007]