Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

URL Rewritemap for query string not working

$
0
0

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?


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>