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

3 Comments 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

  • 2. danielgc  |  July 17th, 2008 at 2:12 am

    thx a lot!

  • 3. Waypoppinumpita  |  December 29th, 2008 at 12:05 pm

    blnlgrjbfdncuroiwell, hi admin adn people nice forum indeed. how’s life? hope it’s introduce branch 😉

Leave a Comment

Required

Required, hidden

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

Trackback this post  |  Subscribe to the comments via RSS Feed


Featured Advertiser

Buy me a beer!

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

Links

Feeds

Posts by Month