Randy Johnson
asked on
IIS rewrite issue. I cannot get the query_string to match
What is wrong with this IIS rewrite rule? I cannot seem to get it to work. If I remove the query string condition it works as expected.
<rule name="Rule 495" stopProcessing="true">
<match url="^golfbooking/golfbook.aspx$" ignoreCase="true" />
<conditions>
<add input="{QUERY_STRING}" pattern="PackName=Tee+Times+Only&PackNew=TRUE&hdr=pmb" />
</conditions>
<action type="Redirect" url="https://www.mbgolf.com/golfbooking/teetimesonly.htm" redirectType="Permanent" />
</rule>
ASKER
That doesn't work. Something with that query string has to be causing an issue...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Ah, I didn't even think of that. Good catch.
ASKER
This was the solution that I implemented
Open in new window
If there additional query string variable attached to the request, you will have to account for those as well.
Dan