Fixed my RSS feeds

I had noticed today that my RSS feeds were working in my browser but FeedBurner and Feed Validator were reporting 404s. I did some searching and found bug 903 that recommended this change:

--- wp-blog-header.php.2005-03-14-113423        Mon Mar 14 11:31:31 2005
+++ wp-blog-header.php  Mon Mar 14 11:31:41 2005
@@ -17,7 +17,7 @@
 if ((isset($_GET['error']) && $_GET['error'] == '404') ||
                ((! empty($_SERVER['PATH_INFO'])) &&
                ('/' != $_SERVER['PATH_INFO']) &&
-                (false === strpos($_SERVER['PATH_INFO'], 'index.php'))
+                (false === strpos($_SERVER['PATH_INFO'], '.php'))
                )) {

        // If we match a rewrite rule, this will be cleared.

The change was already checked into CVS on 2005-02-18, but that was one day after the 2005-02-17 release of WordPress 1.5 so if you’re running 1.5, you’ll need to make the change yourself.

If you’re comfortable with UNIX and the patch(1) command, here’s a patch file that you can use. Just download it to your root WordPress directory and execute patch < bug_903.patch.

Leave a Reply

Your email address will not be published. Required fields are marked *