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

WordPress Trac wp-trac at lists.automattic.com
Thu May 31 03:57:05 UTC 2012


#20798: Custom Taxonomies and Rewrite
--------------------------+-----------------------------
 Reporter:  sumitp        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.3.2
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Seems like a wierd issue. I have 2 custom taxonomies on my system, say
 tax1 and tax2

 When I use below url it works fine.
 http://mydomain.com/?tax1=tax1A&tax2=tax2A,tax2B

 Now, I added a htaccess rule to make this URL SEOable as
 http://mydomain.com/tax1A-at-tax2A,tax2B

 When I use the rule as below, the page does not give results
 RewriteRule ^(.*)-at-(.*)$ /?tax1=$1&tax2=$2 [L]

 While, when I add R=302, the rule works fine, but the URL changes, which I
 do not intend to do.

 On further checks, I found that "Query Multiple Taxonomies" generates the
 page title as
 Categories: ; Tax1: Tax1 A; Tax2: Tax2A, Tax2B
 which, indicates addition of "Category" filter into the query, hence no
 results.

 Normal title, when page works is as below
 Tax1: Tax1 A; Tax2: Tax2A, Tax2B

 I am not sure of the resolution for this though.

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


More information about the wp-trac mailing list