Rewrite Rules with question mark in ISAPI -
i have rewrite question need with. rewrite url: mydomain/x.cfm?color=pink&page=1
to url:
mydomain/pink--x.cfm?page=1
using following rules:
rewriteengine on rewritecond %{query_string} ^(color=.*&page=*)?$ rewriterule ^shop/(.*)--(.*)?page=(.*)/?$ shop/$2.cfm?color=$1&page=$3 [r,nc,l]
but gives me pink--x.cfm not error? there wrong rewrite rule? in advance
if need rewrite url: mydomain/x.cfm?color=pink&page=1 url: mydomain/pink--x.cfm?page=1 rule should be
rewriteengine on rewritebase / rewritecond %{query_string} ^color=(.*)&page=(.*)$ [nc] rewriterule ^([^/.]+)\.cfm$ /%1--$1.cfm?page=%2 [r,nc,l]
Comments
Post a Comment