I am trying to verify my site with google but keep getting this error: We've detected that your 404 (file not found) error page returns a status of 200 (Success) in the header. How could I correct this? Regards Garry
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 21.03.2009 13:21 Uhr, garry@schoolteachers.co.uk wrote:
I am trying to verify my site with google but keep getting this error:
We've detected that your 404 (file not found) error page returns a status of 200 (Success) in the header.
How could I correct this?
How to reproduce? URL? Zope does not send a 200 response: ajung@suxmac2:/tmp wget -S http://www.zope.de/does-not-exist - --2009-03-21 13:54:31-- http://www.zope.de/does-not-exist Resolving www.zope.de... 213.187.85.150 Connecting to www.zope.de|213.187.85.150|:80... connected. HTTP request sent, awaiting response... HTTP/1.1 404 Not Found Date: Sat, 21 Mar 2009 12:54:31 GMT Server: Zope/(Zope 2.8.6-final, python 2.3.5, linux2) ZServer/1.1 Plone/Unknown Bobo-Exception-Line: 644 Content-Length: 18937 Bobo-Exception-Value: See the server error log for details Content-Language: de Bobo-Exception-File: HTTPResponse.py Bobo-Exception-Type: NotFound Expires: Sat, 01 Jan 2000 00:00:00 GMT Content-Type: text/html;charset=utf-8 Connection: close 2009-03-21 13:54:31 ERROR 404: Not Found. - -aj -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAknE47MACgkQCJIWIbr9KYwiiACdH3VfFg/vOZoJuY7zJVYRQ5ar EO8An3+zDd18XN72w92VSoCjArt0SoCv =uuhx -----END PGP SIGNATURE-----
Quoting Andreas Jung <lists@zopyx.com>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 21.03.2009 13:21 Uhr, garry@schoolteachers.co.uk wrote:
I am trying to verify my site with google but keep getting this error:
We've detected that your 404 (file not found) error page returns a status of 200 (Success) in the header.
How could I correct this?
How to reproduce? URL? Zope does not send a 200 response:
ajung@suxmac2:/tmp wget -S http://www.zope.de/does-not-exist - --2009-03-21 13:54:31-- http://www.zope.de/does-not-exist Resolving www.zope.de... 213.187.85.150 Connecting to www.zope.de|213.187.85.150|:80... connected. HTTP request sent, awaiting response... HTTP/1.1 404 Not Found Date: Sat, 21 Mar 2009 12:54:31 GMT Server: Zope/(Zope 2.8.6-final, python 2.3.5, linux2) ZServer/1.1 Plone/Unknown Bobo-Exception-Line: 644 Content-Length: 18937 Bobo-Exception-Value: See the server error log for details Content-Language: de Bobo-Exception-File: HTTPResponse.py Bobo-Exception-Type: NotFound Expires: Sat, 01 Jan 2000 00:00:00 GMT Content-Type: text/html;charset=utf-8 Connection: close 2009-03-21 13:54:31 ERROR 404: Not Found.
This is the URL I have submitted to Google: http://www.reidcarleasing.co.uk/googleb6e4b8f92f9cedbf.html Regards Garry
+-------[ garry@schoolteachers.co.uk ]---------------------- | Quoting Andreas Jung <lists@zopyx.com>: | | > -----BEGIN PGP SIGNED MESSAGE----- | > Hash: SHA1 | > | > On 21.03.2009 13:21 Uhr, garry@schoolteachers.co.uk wrote: | >> I am trying to verify my site with google but keep getting this error: | >> | >> We've detected that your 404 (file not found) error page returns a | >> status of 200 | >> (Success) in the header. | >> | >> How could I correct this? | >> | > | > How to reproduce? URL? Zope does not send a 200 response: | > | > ajung@suxmac2:/tmp wget -S http://www.zope.de/does-not-exist | > - --2009-03-21 13:54:31-- http://www.zope.de/does-not-exist | > Resolving www.zope.de... 213.187.85.150 | > Connecting to www.zope.de|213.187.85.150|:80... connected. | > HTTP request sent, awaiting response... | > HTTP/1.1 404 Not Found | > Date: Sat, 21 Mar 2009 12:54:31 GMT | > Server: Zope/(Zope 2.8.6-final, python 2.3.5, linux2) ZServer/1.1 | > Plone/Unknown | > Bobo-Exception-Line: 644 | > Content-Length: 18937 | > Bobo-Exception-Value: See the server error log for details | > Content-Language: de | > Bobo-Exception-File: HTTPResponse.py | > Bobo-Exception-Type: NotFound | > Expires: Sat, 01 Jan 2000 00:00:00 GMT | > Content-Type: text/html;charset=utf-8 | > Connection: close | > 2009-03-21 13:54:31 ERROR 404: Not Found. | > | This is the URL I have submitted to Google: | | http://www.reidcarleasing.co.uk/googleb6e4b8f92f9cedbf.html Your webserver is configured poorly... Response Headers Connection Close X-R4L-VHOST reidcarleasing.co.uk Content-Type text/html Content-Length 488 Date Sat, 21 Mar 2009 13:12:06 GMT Server lighttpd Which redirects using <META> to your zope (84.45.131.100:8080) directly.. which THEN gives; Response Headers Server Zope/(Zope 2.9.0-, python 2.4.5, linux2) ZServer/1.1 Date Sat, 21 Mar 2009 13:12:06 GMT Bobo-Exception-Line 656 Content-Length 1039 Bobo-Exception-Value See the server error log for details Content-Type text/html; charset=iso-8859-15 Bobo-Exception-Type NotFound Bobo-Exception-File HTTPResponse.py Which also shows; (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: Not Found) -- Andrew Milton akm@theinternet.com.au
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 garry@schoolteachers.co.uk wrote:
I am trying to verify my site with google but keep getting this error:
We've detected that your 404 (file not found) error page returns a status of 200 (Success) in the header.
How could I correct this?
- - Have the code in your your 'standard_error_template' which deals with missing items call 'request["RESPONSE"].setStatus(404)'. - - Don't handle those errors in your 'standard_error_template' at all. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJxOQa+gerLs4ltQ4RAhiLAJ93lmPPgmyPTpPz177gGkYD8GqhygCggmTr ul0Nb2j4x7hAhcDO7NTox8Y= =94Gw -----END PGP SIGNATURE-----
participants (4)
-
Andreas Jung -
Andrew Milton -
garry@schoolteachers.co.uk -
Tres Seaver