[wp-trac] [WordPress Trac] #16687: %postname% permalinks should not trigger verbose rewrite rules

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 17 20:07:32 UTC 2011


#16687: %postname% permalinks should not trigger verbose rewrite rules
-----------------------------+------------------
 Reporter:  nacin            |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  3.2
Component:  Rewrite Rules    |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------

Comment (by Otto42):

 Replying to [comment:12 bike]:
 > But every additional group of 11 rules is exactly the same (they have no
 reference to page/post ID's etc) according to AskApache plugin, so is
 there not a way to just not generate all those ''duplicate'' rules?

 The rules are not the same, the AskApache plugin is only showing you the
 end result, not what it's matching against. It's showing you the values,
 not the keys.

 Edit the AskApache plugin on line 347 to change this:
 foreach($v as $vv) {

 To this:
 foreach($v as $vv=>$res) {

 And then take a look. The rule keys will be shown instead, and you'll see
 why the rules are the way they are. The actual end rules may be the same,
 but the regular expressions they're matching against are not, and those
 are the more important part.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16687#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list