I have an external script I am writing that needs access to users' posts databases. I have the entire script working with one issue:
Every tip I find says to include the 'wp-blog-header.php' file for access to the worpdress API's. This does work, except for when the WPMU install is configured with the blogs at the end of the url, as in domain.com/blogname/ because when I include the header file my script gets redirected to a registration up page.
So my question is, when the blog is set up to run as domain.com/blogname/ how can I include the necessary files to access the WPMU API's, namely the $wpdb object, without the app redirecting me to a new blog registration page?