WordPress users using “index.php” as part of their permalink structure will find upon upgrading to WordPress 2.0.1 that their main feed displays comments instead of posts.

Here is the temporary fix posted on the WordPress Trac by user joshkidd (thanks!):

Make a small change to the classes.php file.

This can be found in the wp-includes folder. Find this line, which is located about 75% to 80% of the way down the file (line 1324):


// Comments
$comments_rewrite = $this->generate_rewrite_rules($this->root . $this->comments_base, true, true, true);

Change this line to the following:

// Comments
$comments_rewrite = $this->generate_rewrite_rules($this->root . $this->comments_base, true, true, true, false);

All that is being added is the “false” at the end of the parameter line.

Save the file.

Create a test static page.

Just name a page “test”. Save it. This flushes out the rewrite rules. The main RSS feed “…/index.php/feed/” should now be displaying correctly.

I would expect an official fix from WordPress sometime soon.

 

About the Author

Paul Flyer loves to research the web and find resources and tools for building, maintaining and promoting websites. Based in Saint Louis, MO, he works in management and spends his free time sharpening his web development and copy writing skills. Feel free to contact Paul with any questions, comments or ideas. He is also available to help you with your own website.