Jump to content

Recommended Posts

Posted

Hi,

 

I had uploaded a Google sitemap, and was recently trying to "verify" it with a new utility they provided on the Google website. I just had to upload an html file that Google can use to verify my sitemap. This worked fine on a different server/host, but I'm unable to verify on my TotalChoiceHosting domains.

 

The error I get from Google is this:

***************

We've detected that your 404 (file not found) error page returns a status of 200 (OK) in the header.

this configuration presents a security risk for site verification and therefore, we can't verify your site. If your web server is configured to return a status of 200 in the header of 404 pages, and we enabled you to verify your site with this configuration, others would be able to take advantage of this and verify your site as well. This would allow others to see your site statistics. To ensure that no one can take advantage of this configuration to view statistics to sites they don't own, we only verify sites that return a status of 404 in the header of 404 pages.

 

Please modify your web server configuration to return a status of 404 in the header of 404 pages. Once your web server is configured correctly, try to verify the site again. If your web server is configured this way and you receive this error, click Check Status again and we'll recheck your configuration.

***************

 

I added this to my .htaccess file, but still no luck:

ErrorDocument 404 *****/

 

Any ideas how to fix this or if it's possible?

 

Thanks for your help.

Posted

I'm not sure what you set as the page to be displayed when a 404 error occurs, but it should not include your domain name. From the Apache documentation on the ErrorDocument directive:

Note that when you specify an ErrorDocument  that points to a remote URL (ie. anything with a method such as "http" in front of it), Apache will send a redirect to the client to tell it where to find the document, even if the document ends up being on the same server. This has several implications, the most important being that the client will not receive the original error status code, but instead will receive a redirect status code. This in turn can confuse web robots and other clients which try to determine if a URL is valid using the status code

Your .htaccess file should have something like the following:

>ErrorDocument 404 /custom404.html

mod_rewrite directives could also cause this issue (I believe), depending on how you set it up (if you're using mod_rewrite at all).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...