I am setting up a few sections of a website external to the core wordpress installation, but I still want to use the built in wpdb functions, and/or header files from wordpress.

I follow the instructions outlined in wordpress, setting up my headers:

 define('WP_USE_THEMES', false);    
 . ?>

Everything works great. I can use wordpress' built in functionality while extending my site to use other functionality.

In one case, the file is outside of my wordpress directory. In another case, the file is nested in a folder in the root of my wordpress directory.

However, when loading the page in question, I get a 404 in the Net Panel of my inspector of the exact page I'm loading, like Wordpress can't find the page, but since it's a real php page, of course it loads. Most importantly, the pages fail to load using IE8.

Does anyone have insight to this issue?

Example Link

More links and screenshots available, but I don't have enough reputation.


2 Answers 2


consider including wp-load.php instead of wp-blog-header.php

You can also "force" a 200 response using status_header(200); although, depending on how you code your site, this could interfere with sending legitimate 404s.


Solution Found! Thanks to these guys


The key is, don't use wp-blog-header, but this code instead.

  • Working like a charm in 2019. Commented May 3, 2019 at 21:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.