I’ve checked the headers on pages that are supposed to return a 404 error and they return “HTTP/1.1 404 Not Found”, which is the desired and expected behavior. However, for those familiar with Google Webmaster Tools, if I try to verify my site ownership for the Google Sitemaps application by uploading a file (e.g. google4a61g765e7b98d37.html) to the CodeIgniter root directory, Google gives me the following error:
Verification status: NOT VERIFIED
We’ve detected that your 404 (file not found) error page returns a status of 200 (Success) in the header.
Not sure if this is a bug or due to my own oversight or improper implementation of the show_404 function. Anyone have any ideas what’s causing this? Am I using the show_404 function incorrectly? I tried sticking the path into the function but Google gave me the same error, so right now I just call it like so:
Any help would be greatly appreciated. Thanks!