WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 8 years ago

#1152 closed defect (bug) (wontfix)

htaccess mod_rewrite rules puts category rules first

Reported by: nearlythere Owned by:
Milestone: Priority: normal
Severity: minor Version: 1.5
Component: General Keywords:
Focuses: Cc:

Description

"There is a bug in the way WP 1.5 is writing down mod_rewrite rules in .htaccess

Look in there, and you will see that it writes category rules (about 4-5 of them) before monthly-archive and single-post rules."

See post in situ: http://wordpress.org/support/topic.php?id=18304#post-145324

Change History (5)

comment:1 nearlythere9 years ago

  • Patch set to No

comment:2 nearlythere9 years ago

This explains this issue in more detail:

"Once you add pages, WP updates its part of .htaccess, but it writes the category rules ... to the wrong place. They should always be at the end, but it places them in the middle, before the entry and by-month rules. This in turn gives 404 for [individual entries and pages]."

http://www.aplus.co.yu/it/this-blog-runs-wp-15-now/

comment:3 ryan9 years ago

The right place depends on your permalink structure. By default, we put the category rules first so that they don't get stomped on by greedy post rules. That's also the reason /category/ is there by default -- to avoid collisions. Changing the rule order and the category base can be done via a plugin. No one rule order is going to work for everyone.

comment:4 nearlythere9 years ago

a-ha. sorry about this then. thanks for your help.

comment:5 mdawaffe8 years ago

  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.