ISAPI_Rewrite
2 posts
• Page 1 of 1
- Manikandan
- Posts: 2
- Joined: 24 May 2017, 17:20
ISAPI_Rewrite
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 ...
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 ...
Re: ISAPI_Rewrite
- Code: Select all
RewriteEngine on
RewriteCond %{QUERY_STRING} ^String Pattern [NC]
RewriteRule (.*) http\://www.new_location.com/$1 [QSA,R]
# Further rules go here:
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 13 guests