Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#385 closed defect (bug) (fixed)

rss feeds are broken with WP 1.3alpha and permalinks on

Reported by: jamesvl's profile jamesvl Owned by: ryan's profile ryan
Milestone: Priority: normal
Severity: major Version:
Component: General Keywords:
Focuses: Cc:

Description

On sites with WP 1.3alpha, I noticed the RSS feeds were not working. Though the XML file was being sent with the basic meta info, no story summaries were being sent.

Similar to bug #0000330, this is probably a result of the %category% tag being a permalink option in 1.3. I have not tested this theory, though.

The problem turned out to be one of the later rules written to my .htaccess file. When the line:

RewriteRule ([0-9]{4})/([0-9]{1,2})/([/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&name=$3&feed=$4 [QSA]

caused the problem. Removing it or converting it to

RewriteRule ([a-zA-Z0-9_-]{1,})/(feed|rdf|rss|rss2|atom)/?$ /index.php?category_name=$1&feed=$2 [QSA]

fixed the rss feeds to work as expected.

My guess is that the incorrect RewriteRule was getting picked up even when it shoudln't. As a result, WP was processing a string like

/index.php?category_name=feed&feed=rss2

instead of doing

/index.php?feed=_rss2

Change History (3)

#2 @jamesvl
19 years ago

This is fixed in the latest CVS versions - apparently, lots of changes have been made to the .htaccess file that makes it play much nicer now. This bug can be closed.

#3 @ryan
19 years ago

  • fixed_in_version set to 1.3
  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 20
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.