Solution - Wordpress 2.0.6 fails google sitemap validate with 200(OK) error

January 10th, 2007

After hours and hours and hours of trying to find a solution to the following error in Google Sitemaps - We’ve detected that your server returns a status of 200 (found successfully) for pages that don’t exist, I have found a solution.. Ok - a solution to the We’ve detected that your server returns a status of 200 (found successfully) for pages that don’t exist error… Go to the wordpress/wp-content/themes folder, then navigate to your preferred theme and add the following code to the header.php file of your desired theme, before anything else. <?php if (is_404()) { header('HTTP/1.0 404 Not Found'); } ?> Alternatives questions may be:- Alternatives questions may be:-

  • Why can’t I verify my wordpress installation in Google Sitemaps?
  • 404 error in google sitemaps verification
  • How to verifiy wordpress in google sitemaps
  • google will not validate my wordpress blog.
Digg!

Entry Filed under: Wordpress Tutorials

If you found this page useful, consider linking to it.
Simply copy and paste the code below into your web site (Ctrl+C to copy)
It will look like this: Solution - Wordpress 2.0.6 fails google sitemap validate with 200(OK) error

1 Comment Add your own

  • 1. Jack  |  January 11th, 2007 at 5:01 am

    FANTASTIC! That’s exactly the prob I’ve been having - you saved me loads of time Duckman!

    Jack

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Featured Advertiser

Categories

Buy me a beer!

This sure is thirsty work - Here's your chance to buy me a beer :)

Links

Feeds

Posts by Month