I have a domain with the following query string:
http://example.com/?taxo=question&cata=foo&catb=bar&catc=more My objective is to convert this query string after ?taxo= into a path based on the values for each parameter like so:
http://example.com/questions/cata/foo/catb/bar/catc/more/ Using .htaccess, this is what I've tried:
RewriteCond %{QUERY_STRING} RewriteRule ^taxo=(.*)&(.*)=(.*)&(.*)=(.*)&(.*)=(.*)$ $1/$2/$3/$4/$5/$6/$7 [L,R=301] However, that doesn't work for me. I'm trying to understand where I am going wrong with the RewriteRule line since the condition isn't being met.