Title: 200 ERROR SOLVED
Last modified: August 18, 2016

---

# 200 ERROR SOLVED

 *  [gripmedia](https://wordpress.org/support/users/gripmedia/)
 * (@gripmedia)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/200-error-solved/)
 * Looks like I found the solution on a dead site thankfully cached by google… use
   at your own risk…
 * Thanks to the long dead [http://www.sukasuka.org](http://www.sukasuka.org) for
   the fix…
 * 200 OK
    The document has moved here.
 * After looking at the code, I found the culprit in file wp-includes/classes.php.
   I commented out the line that says status_header( 200 ) and that seems to solve
   the 200 HTTP status problem.
 * function handle_404() {
    global $wp_query; // Issue a 404 if a permalink request
   doesn’t match any posts. Don’t // issue a 404 if one was already issued, if the
   request was a search, // or if the request was a regular query string request
   rather than a // permalink request. if ( (0 == count($wp_query->posts)) && !is_404()&&!
   is_category() && !is_search() && ( $this->did_permalink || (!empty($_SERVER[‘
   QUERY_STRING’]) && (false === strpos($_SERVER[‘REQUEST_URI’], ‘?’))) ) ) { $wp_query-
   >set_404(); status_header( 404 ); } elseif( is_404() != true ) { // status_header(
   200 ); } }

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [marketanomaly](https://wordpress.org/support/users/marketanomaly/)
 * (@marketanomaly)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/200-error-solved/#post-409131)
 * Thanks for this. It worked perfectly. I hope that the developers pick this up
   and include the fix in the next update.
 *  [marketanomaly](https://wordpress.org/support/users/marketanomaly/)
 * (@marketanomaly)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/200-error-solved/#post-409132)
 * Is there a script available to fix the problem with the database? Commenting 
   the error code works, but it seems that there is a problem with the database 
   causing this error.
 * I believe this error mainly occurs with wordpress installations that have been
   upgraded from 1.5 to 2.0
 *  [idner](https://wordpress.org/support/users/idner/)
 * (@idner)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/200-error-solved/#post-409139)
 * I’m only experiencing this at my blogs hosted at dreamhost
 * has this been fixed further?
 *  [idner](https://wordpress.org/support/users/idner/)
 * (@idner)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/200-error-solved/#post-409140)
 * that fix does work good, weird that they didnt fix it with 2.04
 * wp sure is an adventure
 *  [gogetternow](https://wordpress.org/support/users/gogetternow/)
 * (@gogetternow)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/200-error-solved/#post-409146)
 * I am surprised WordPress don’t even bother commenting on this… 🙁
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/200-error-solved/#post-409147)
 * WordPress probably won’t comment on it, as WordPress is a software package. While
   brilliant, it certainly isn’t sentient.
 * Now, the WP devs may have some thoughts, but you won’t see them here too often.
   Granted, if you feel you’ve found a bug, you’d wander over to trac.wordpress.
   org and enter it and get all sorts of developer attention!
 * As a forum volunteer, what other sort of comment can I offer?
 *  [jtonline](https://wordpress.org/support/users/jtonline/)
 * (@jtonline)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/200-error-solved/#post-409154)
 * I’ve just started a WordPress 2.0.4 blog on my site and have been tinkering with
   a template. I was dismayed to find in testing the site that if I clicked on any
   TrackBack link (which I guess some of my visitors might do) I got a 200 OK error.
 * I was able to fix it very quickly though by using a search engine and finding
   this thread, so thanks for that bit of info.
 *  [Covi](https://wordpress.org/support/users/covi/)
 * (@covi)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/200-error-solved/#post-409155)
 * Why you want redirect?… oO
    You can use this report to display permalink, etc…

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘200 ERROR SOLVED’ is closed to new replies.

## Tags

 * [OK](https://wordpress.org/support/topic-tag/ok/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 7 participants
 * Last reply from: [Covi](https://wordpress.org/support/users/covi/)
 * Last activity: [19 years, 7 months ago](https://wordpress.org/support/topic/200-error-solved/#post-409155)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
