ISAPI_Rewrite

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 24 May 2017, 17:20

ISAPI_Rewrite

24 May 2017, 17:33

When the requestURL matches with RewriteCondition rule, don't do any rewrite of that URL just redirect as it is.
How to write the RewriteCondition and Rewrite URL for that?
Basically looking for something like this:
RewriteCond %{QUERY_STRING} ^"String Pattern"
RewriteRule ... Just forward the request as it is else if string does not match proceed with below set of rules
RewriteCond %{QUERY_STRING} ....
RewriteCond %{QUERY_STRING} ....
RewriteCond %{QUERY_STRING} ....
RewriteRule ...

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: ISAPI_Rewrite

26 May 2017, 09:06

Code: Select all
RewriteEngine on

RewriteCond %{QUERY_STRING} ^String Pattern [NC]
RewriteRule (.*) http\://www.new_location.com/$1 [QSA,R]
# Further rules go here:

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 9 guests