Help with Rewrite

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 13 May 2013, 15:17

Help with Rewrite

13 May 2013, 15:24

Hi All,
i have a rewrite question that need help with.
Rewrite from this URL:

Code: Select all
mydomain/x.cfm?color=pink&page=1


to this URL:

Code: Select all
mydomain/pink--x.cfm?page=1


Using the following rules:
Code: Select all
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(color=.*&page=*)?$
RewriteRule ^shop/(.*)--(.*)?page=(.*)/?$  shop/$2.cfm?color=$1&page=$3 [R,NC,L]


But it gives me pink--x.cfm not error?
Is there something wrong with my rewrite rule?

Thanks in advance.

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Help with Rewrite

14 May 2013, 06:04

I've already answered you on StackOverflow:

http://stackoverflow.com/questions/16530522/rewrite-rules-with-question-mark-in-isapi/

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 14 guests