How does one suppress a 404 status code in a WordPress page?

I've got a WordPress site that includes pages pulled from a different database. The problem is that these other pages return a 404 status code. (The WordPress posts/pages are fine.)

The 404'ed pages display fine, and I removed the "Page not Found" text from the title tag in WordPress. But Googlebot and W3C see the 404 header.

So: wow does one tell Apache to suppress a 404 status? And will Apache override WordPress's 404 header?

Does that make sense? What other info and things should I be looking at?

Can I suppress the status code in .htaccess so I don't change WP core files?


You can either add custom rewrites to your pages. Or on the top of the template files that wrap your other pages just output header('HTTP/1.1 200 OK');.

WordPress offers the function status_header() to return the correct status-code.

You can call this function inside your WordPress template/function:

// Will return http status header "200 OK"

Wordpress is PHP, so look for where it's sending something like:

header("HTTP/1.0 404 Not Found");

Need Your Help

Block btn until at least 1 checkbox of an offset is selected

javascript jquery twitter-bootstrap

A little frustrated here, somehow I can't make this work no matter what I try. I have a small form with 2 offsets, each containing a few checkboxes as the following:

Unable to update custom entity record

dynamics-crm-online dynamics-crm-2015

I've run into a problem with CRM Online and a custom entity where in I am unable to update any records in the custom entity. In addition to being unable to update records I am also unable to delete