Opened 20 years ago
Closed 18 years ago
#1152 closed defect (bug) (wontfix)
htaccess mod_rewrite rules puts category rules first
Reported by: |
|
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)
#3
@
20 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.
Note: See
TracTickets for help on using
tickets.
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/