Hi,
I have some thousands of urls of the type www.xyz.com/Quiz_Listing.aspx?page=3
This will get redirected to a different url everytime(which are plain urls likewww.xyz.com/poll/gallery)
My Rewritemap file looks like this :
<rewriteMaps>
<rewriteMap name="testquery">
<add key="Quiz_Listing.aspx?Page=3" value="/engage/gallery-collection"/>
</rewriteMap>
</rewriteMaps>
and rule goes like
<rule name="Redirect From Map" enabled="false" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^(.+\.aspx)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{testquery:{R:1}}" appendQueryString="true" />
</rule>
If the key in my rewritemap doesnot have a query string then the redirection works fine. But whenever there is a query string involved the redirection fails. Do i need to take care of something while working on query string in rewrite maps?