DON’T DO THIS, SEE BELOW, THIS IS THE CAUSE, NOT THE SOUTION
Hello all,
a temporary solution (hacking core files cant’ be a definitive solution) for the infamous 200 ok document moved here syndrom
1- open wp-includes/classes.php
2- look for the following function line 1706 :
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_search() && ( $this->did_permalink || (!empty($_SERVER['QUERY_STRING']) && (false === strpos($_SERVER['REQUEST_URI'], '?'))) ) ) {
$wp_query->set_404();
status_header( 404 );
nocache_headers();
} elseif( is_404() != true ) {
status_header( 200 );
}
}
3 in the function locate the ligne :
status_header( 200 );
4- comment it
It works..
Luc