WP BLOG LOG on Sept. 9th 2006 by PRvE
Use with my WP Blog Installation Action Sheets!
CONCERNS:
- wp-content/plugins/feedburnerplugin.php
- wp-includes/classes.php
PROBLEM:
After installing feedburnerplugin.php on thinelectrons.com/blog the RSS and Comment feeds displayed a 200 OK Apache error page. This included the link to the feedburner feed, but it should redirect instantly for the feed to work in a feed reader.
RESOURCES:
http://flagrantdisregard.com/index.php/2006/02/18/feedburner-plugin-for-wordpress-20/
http://wordpress.org/support/topic/75286
SOLUTION:
Change code in: wp-includes/classes.php
Find:
function handle_404() {
global $wp_query;
// Issue a 404 if a permalink request doesn’t match any posts. Don’t
// issue a 404 if one was already issued, if the request was a search,
// or if the request was a regular query string request rather than a
// permalink request.
if ( (0 == count($wp_query->posts)) && !is_404() && !is_search() && (
$this->did_permalink || (!empty($_SERVER[’QUERY_STRING’]) && (false === strpos
($_SERVER[’REQUEST_URI’], ‘?’))) ) ) {
$wp_query->set_404();
status_header( 404 );
} elseif( is_404() != true ) {
status_header( 200 ); }
}
Change to:
function handle_404() {
global $wp_query;
// Issue a 404 if a permalink request doesn’t match any posts. Don’t
// issue a 404 if one was already issued, if the request was a search,
// or if the request was a regular query string request rather than a
// permalink request.
if ( (0 == count($wp_query->posts)) && !is_404() && !is_search() && (
$this->did_permalink || (!empty($_SERVER[’QUERY_STRING’]) && (false === strpos
($_SERVER[’REQUEST_URI’], ‘?’))) ) ) {
$wp_query->set_404();
status_header( 404 );
}
}
Removed:
} elseif( is_404() != true ) {
status_header( 200 );
COMMENTS:
Changing the code in the classes.php file solves the redirect problem for the feedburnerplugin.php but I have no idea whatsoever how it affects the working of 404 error handling otherwise.
Apply this solution at your own risk!
Tag: blog, delivery mechanism, plugins, wesite elements, WordPress
Examination Software
Mark Joyner
Ideal Body Weight
Search Feast
Info Products Goldmine
Writer'S Block
|













November 1st, 2006 at 11:35 am
Hello,
Just wondering if anyone could help. I did something stupid and started my blog using a numerical archive system, and now I'd like to change it so that the post title is part of the URL for SEO reasons. Is there any Wordpress plugins that anyone knows of that could switch it without sending Googlers to invalid pages? Maybe some sort of redirector to the correct page?
Thanks.
November 2nd, 2006 at 1:40 pm
Hi Kade,
I had a look and found some links which might be useful to you. You can read the documentation on these plugin pages:
http://blog.taragana.com/index.php/archive/wordpress-plugin-for-permanent-redirection-of-posts-angsumans-permanent-redirector-plugin
http://www.dynamiccorestudios.com/archive/wordpress-plugin-custom-rewrite-rules
http://fucoder.com/code/permalink-redirect
If any of these work for your situation, let us know!
Thanks,
Patricia