It turns out that it’s the require('../wp-blog-header.php');
part who caused the HTTP 404 error. I replaced the header code with:
status_header(200);
nocache_headers();
Both are part of WordPress API. And the problem went away. I found this solution from: http://wordpress.org/support/topic/integrating-wp-in-external-php-pages?replies=22
Related Posts:
- How to get the custom header image’s alt text?
- Nginx FastCGI_Cache Vs PHP Caching
- How to set custom cookies before output
- How to stop loading multiple copies of jquery
- Creating a WordPress form with a PHP script and default header
- Why isn’t my if/elseif/else working correctly here?
- WordPress media upload “HTTP error”
- StudioPress: add meta tag to every page [closed]
- Block PHP Files Nginx
- Add custom HTML to posts page
- Using PHP to toggle stylesheet and header image, set in cookie
- Change logo based on incoming domain
- PHP Code stuck in Cache [Memcached] [closed]
- Echo URL of large version of Featured Image
- Changing custom logo link
- Conditional Header in wordpress
- add_image_size for header_image
- From where the header-text can be changed in WordPress custom header?
- How to combine wordpress_logged_in cookies in one cookie?
- Responsive Header for Phone
- how to combine wordpress htaccess on my root domain + php on subfolder
- Incorrect MIME type for assets with Valet
- WordPress & Fastcgi proper setup?
- NGINX rewrite rules for multisite
- My php header() function is not working [closed]
- “imagejpeg” function is not working in wordpress
- wp-comments-post.php file returns a blank page
- Large Woocommerce Site (83,000 items), What Can I Do? [closed]
- Insert custom PHP head above in WP pages
- Headers already sent in Pluggable.php / homepage and wp-login error
- Is_front_page inside header.php is always returning true
- Does wordpress templates always in files or in database?
- Adding Meta Tags to a Post using its Tags, Excerpt and content
- Moving code from theme header to functions.php
- WordPress wp_redirect error
- Having Issue on Redirecting With Session in WordPress
- linking stylesheets and scripts with functions.php
- Location of core code for database connection and get_header
- Clickable image link sends people to wrong URL
- unknown issue in ‘header.php’ preventing theme from displaying fully
- How can I use a sliced image As banner? [closed]
- Add meta tags to a custom header
- is_page_template showing partial results
- Is this a correct usage of ob_start() in my WordPress project?
- Change header on pages displaying taxonomy items
- Custom CSV exporter – Cannot modify header information – headers
- Nginx WordPress and another Web app URL structure
- How to add Post Tags to a new element in header.php?
- How to debug failed changes to posts?
- setcookies and header send
- Which version of PHP-FPM is necessary to work with WP 3.5?
- Migrating site, only header shows
- How to internationalize header image?
- Custom functions for string data calculations
- Infinite Loop in WordPress Installation
- How do you remove header sitewide from mobile only?
- WP_REST_Response – How to return Gzip answer and add Content-encoding header?
- How do I use an iFrame for my header in WordPress twenty seventeen?
- WordPress can’t use ZipArchive
- Reliable way to add nonce to HTTP Header in WordPress?
- How to remove get_header From all single pages in wordpress with functions.php without plugin?
- Display values of current POST request on page
- WordPress on Ubuntu – “File not Found” for home.php – Trying to Redirect to Root Folder
- How to route root path / to /xyz in nginx?
- Why can’t I connect to the wordpress install page with Nginx?
- Changing ALT-tag for logo in wordpress
- Using Javascript On Page – Header and Footer Now Missing
- Sudden Upload HTTP errors, PHP uploads and memory limits are already to high to my taste. Anything else?
- Modifying child theme’s header
- Add my footer menu to the header
- WordPress/NGINX not respecting the category URL for new posts
- Change headers for one custom PHP file
- If i use a child theme to add new code blocks to header.php, how does it get inserted in the right place in parent’s header.php?
- Premature end of script headers: wp-mail.php?
- setcookie() issues on running with HTTPS on WordPress
- Allow user to choose header style
- How to include different html tags in the header for different pages?
- Use header option on wp-login page with a second logo
- How to solve 404 permalink errors on nginx server
- my site show this symbol (::) between site title and tagline
- Headers Already Sent
- Adding theme support for a custom header image
- Adding header function to theme
- Changing 2011 theme header image based on user dropdown
- Converting Menu Links to List Elements
- Warning: Cannot modify header information (with a twist)
- Cannot get custom javascript to execute on page
- Cannot modify header information – headers already sent
- How to implement a custom sliding banner? [closed]
- Dynamic Email Handler with ‘header (“Location: …’
- Create custom API endpoint to change custom header image
- WordPress directories not writable after PHP version upgrade
- How can I improve and optimise my wordpress web server for better performance in 2023
- Namespacing WordPress project according to FIG standards
- WordPress Wysiwyg Content not being displayed
- Want to create Child theme, but already edited Parent theme css files and some php files
- Rewrite sub folder dynamically with country code in WordPress using PHP
- How to add post meta in while loop?
- Drop down question
- WordPress – Image href for home menu nav not working