Forum Moderators: Robert Charlton & goodroi
"We've detected that your 404 (file not found) error page returns a status of 200 (Success) in the header."
I have changed nothing and doing a header check for a non existent page on my site gives a 404 error, not a 200.
Any ideas why this would happen? I can't use WMT until this is corrected...
Google has been doing this more and more to help websites avoid the kind of problems that come up with common errors - such as a 302 to a custom error page that then returns a 200 OK. That means every "bad" url ends up looking like a good url but with the custom content as duplicate for every bad url.
I've worked with sites that gave a perfect 404 response on the IIS level, for instance, but the errors that were handled by the .NET platform generated a 302 redirect to a 200 OK url. So a typo in one part of the url got a 404, but a typo elsewhere got the problematic response. A parallel situation can be true on Apache.
HTTP/1.0 404 Not Found
Date: Wed, 12 Mar 2008 15:05:36 GMT
Server:
X-Powered-By: PHP/5.2.3
Last-Modified: Tue, 31 Jul 2007 21:20:13 GMT
Content-Length: 6846
Connection: close
Content-Type: text/html
While other non-existent pages are showing a 200 with the following:
HTTP/1.1 200 OK
Date: Wed, 12 Mar 2008 15:05:21 GMT
Server:
X-Powered-By: PHP/5.2.3
Set-Cookie: 76074cec8f3f6bdf816d3f8e93317e0a=-; path=/
Set-Cookie: mosvisitor=1
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Tue, 31 Jul 2007 21:20:13 GMT
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html
I'm stumped....
or firefox and the Live HTTP Headers [livehttpheaders.mozdev.org] plugin.