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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -