[Typo3-dev] 404-Header

Chris Mueller cmueller at xmedias.de
Thu Sep 8 15:25:59 CEST 2005


Hi there,

I am using the extension "Google Sitemaps" and Google wants now to check 
if you are really the owner of the website. So you have to put an empty 
HTML file into the same directory where the page with the google sitemap 
is. But ... Google also checks what the server responds if it "browses" 
to a page that doesn't exists.

Now I am getting an error from Google: "We've detected that your 404 
(file not found) error page returns a status of 200 (OK) in the header."
http://www.google.com/webmasters/sitemaps/docs/en/stats.html#verificationfileconfigerror

And really, the header is:
HTTP/1.1 200 OK
Date: Thu, 08 Sep 2005 13:08:03 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux PHP/5.0.4-1.dotdeb.1
X-Powered-By: PHP/5.0.4-1.dotdeb.1
Set-Cookie: fe_typo_user=cf3b100cf9; path=/
Status: 404 Not Found
Content-Type: text/html; charset=iso-8859-1

I changed in the file "typo3_src-3.8.0/t3lib/config_default.php" the 
value for "pageNotFound_handling_statheader" from "Status: 404 Not 
Found" to "HTTP/1.0 404 Not Found" and everything works fine.

Now the server responds:
HTTP/1.1 404 Not Found
Date: Thu, 08 Sep 2005 13:20:58 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux PHP/5.0.4-1.dotdeb.1
X-Powered-By: PHP/5.0.4-1.dotdeb.1
Set-Cookie: fe_typo_user=d5da239067; path=/
Content-Type: text/html; charset=iso-8859-1

I think, Typo3 should give back the correct 404-Header, so that search 
engines can delist pages, that doesn't exist anymore - and not to index 
the error message.

Chris.




More information about the TYPO3-dev mailing list