[wp-trac] [WordPress Trac] #20798: Custom Taxonomies and Rewrite

WordPress Trac wp-trac at lists.automattic.com
Thu May 31 11:37:48 UTC 2012


#20798: Custom Taxonomies and Rewrite
--------------------------+----------------------
 Reporter:  sumitp        |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  3.3.2
 Severity:  normal        |  Resolution:  invalid
 Keywords:  close         |
--------------------------+----------------------
Changes (by dd32):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 This isn't a Bug, it's due to the way you're doing the rewriting,
 Unfortunately I'm not good enough at mod_rewrite to suggest an
 alternative.

 WordPress is interprating the request in 2 ways, It's processing the GET
 variables (from your rewrite rule) and also from the REQUEST_URI (ie.
 WordPress's internal url rewriting functionality)

 The actual request WordPress see's is:
 {{{
 http://mydomain.com/tax1A-at-tax2A,tax2B/?tax1=tax1A&tax2=tax2A,tax2B
 }}}

 Since your permalink rules are most likely {{{%category%/%postname%/}}} or
 similar,  WordPress is interpreting the path in the URL as a category.
 This isn't a bug, it's just the way that the rewrite rules in WordPress
 work.. They don't work well with mod_rewrite rules that also hit
 WordPress.

 The best way to achieve what you want, would be to use WordPress's
 internal url rewriting, WP_Rewrite instead.

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


More information about the wp-trac mailing list