Hi,
I have a URL which I need to rewrite only at one particluar value. URL looks like - http://***************languageCode=da&countryCode=DA&ver=v11&productType=anonymous&isInBusinessHour=true&portal_id=1000&acname=prod
What I need is that when anyone comes to this URL, it should be rewritten to ***************languageCode=da&countryCode=DA&ver=v11&productType=anonymous&isInBusinessHour=true&portal_id=444400000001000&acname=prod
etc.,
<rewrite>
<rules>
<rule name="444400000001000" patternSyntax="ExactMatch">
<match url="(.*)" />
<conditions>
<add input="{QUERY_STRING}" pattern="^(.*)portal_id=1000(.*)$" />
</conditions>
<action type="Rewrite" url="{R:1}?{C:1}portal_id=444400000001000{C:2}" appendQueryString="false" logRewrittenUrl="true" />
</rule>
<rule name="444400000001001">
<match url="(.*)" />
<conditions>
<add input="{QUERY_STRING}" pattern="^(.*)portal_id=1001(.*)$" />
</conditions>
<action type="Rewrite" url="{R:1}?{C:1}portal_id=444400000001001{C:2}" appendQueryString="false" />
</rule>
But it does not seems to work
Any thoughts?
Thank you,
Veeren