Wow, this surprised me, I didn't realized that ALL THE TIME my blog's 404 won't load! Geesh, that's a sucker. You see, I'm using wordpress (My blog is at http://www.carlocab.com ) and wordpress themes has a 404 page included. I was just wondering why this happened, it loaded in firefox but not on IE. See it for your self. try it on IE and firefox. Darn, I need to fix this
The only thing that comes to my mind is that you're on a php/cgi machine and the header() format is different in cgi vs module php. Could be your 404 handler in your theme hasn't been patched for this and isn't sending the proper header for the cgi: Look in the 404.php file for: if ( !empty($error) && '404' == $error ) { PHP: if all you see is: @header('HTTP/1.1 404 Not Found'); Replace it with: if ( preg_match('/cgi/', php_sapi_name()) ) @header('Status: 404 Not Found'); else @header('HTTP/1.1 404 Not Found'); } PHP: Matt
dont know how you are going about this but i checked the headers you are sending ..... it says 404 OK which is incorrect .. IE is treating it correctly by showing its own 404 page .. try to send 200 OK instead of 404 OK
That is a strange one. If I refresh the page enough times in IE I get the correct error page, but mostly it gives the IE default 404 message. Firefox always gives the correct one. Here are your response headers: Date: Wed, 29 Aug 2007 03:09:22 GMT Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b Cache-Control: no-cache, must-revalidate, max-age=0 Expires: Wed, 11 Jan 1984 05:00:00 GMT Pragma: no-cache X-Pingback: http://www.carlocab.com/xmlrpc.php X-Powered-By: PHP/4.4.4 Set-Cookie: wwsgd_visits=8; expires=Thu, 28 Aug 2008 03:09:22 GMT; path=/ Last-Modified: Wed, 29 Aug 2007 03:09:22 GMT Keep-Alive: timeout=10, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8 404 OK PHP: Here are response headers from Microsoft.com Cache-Control: no-cache Pragma: no-cache Content-Type: text/html; charset=iso-8859-1 Expires: -1 Server: Microsoft-IIS/7.0 X-AspNet-Version: 2.0.50727 P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI" X-Powered-By: ASP.NET Date: Wed, 29 Aug 2007 03:17:14 GMT Content-Length: 16820 404 Not Found PHP: Notice the difference from 'OK' and 'Not Found'. I found this at wordpress.org I suggest looking in your 404.php file to look for that line, perhaps it was written wrong by your template designer or it is missing and needs to be added.