HI All
Please check my rewrite rule pasted below which working in given case . but i need to redirect many urls in a1.mydomain.com to
http://www.newdomain.com/brand/static1.html.(mutilple pages to same page)
like this for a1.mydomain.com
i tried by adding one more input
<add input="{HTTP_HOST}" pattern="^a1.mydomain.com?act=order$" />
but its not working . How to do this
<rewrite>
<rules>
<rule name="a1" enabled="true" patternSyntax="ECMAScript" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^a1.mydomain.com$" />
</conditions>
<action type="Redirect" url="http://www.newdomain.com/brand/static1.html" />
</rule>
<rule name="a2" enabled="true" patternSyntax="ECMAScript" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^a2.mydomain.com$" />
</conditions>
<action type="Redirect" url="http://www.newdomain.com/brand/static2.html" />
</rule>
</rules>
Thanks in Advance