I am integrating a WP blog with a existing static website. In order not to have to maintain two different header & footer files - as well as to avoid redoing all the static pages to point to a WP header/footer, I have instead linked the WordPress blog theme files to the existing site header & footer files like this:
include($_SERVER['DOCUMENT_ROOT'] . "/includes/header.inc.php");
I added the WordPress hooks into the existing header as well. Here's the code for header.inc.php:
Everything works well, but I've just discovered that all the static pages outside the WordPress /blog/ folder are sending "404 error" HTTP status headers to the browser, which is obviously not acceptable.
I get this error when trying to validate the HTML on the static pages:
I got the following unexpected response when trying to retrieve <http://nom.zooninidev.com/family-camp.php>:
404 Not Found
I am also seeing
<body class="error404"> in all the static pages as well. Somehow, these pages are being interpreted by WP as nonexistent.
If anyone knows how to correct this I would be grateful. Obviously we can't go live until this is fixed. Thanks in advance.