So, I'd like to turn the following url:
tags/tag1/tag2/tag3
into one that is parameterized like:
tags.php?tags=tag1&tags=tag2&tags=tag3
which has left me with the following RewriteRules (among others)
RewriteRule ^tags/([^/]+)(/.+)?$ tags.php?tags=$1$2 [C]
RewriteRule ^tags.php?tags=([^/]+)/([^/]+)(/.+)?$ tags.php?tags=$1&tags=$2$3 [N]
but when I pull up the tags variable using php I get "tag1/tag2/tag3"
, which leads me to believe it is not running correctly. Anyone have any idea why the second rule isn't even getting applied once?
What I ended up going with was:
Which does the same thing but builds it in reverse.