Currently I have installed "IIS URL Rewrite Module 2" on my Server (Windows Server 2008 R2 Standard) with IIS 7.5.
At the "Default Web Site" Level, I have installed the following rule which works fine:
<rewrite>
<rules>
<rule name="Root Hit Redirect" stopProcessing="true">
<match url="^$" />
<action type="Redirect" url="/TEST/Login.aspx?guestlogin_id=1" />
</rule>
</rules>
</rewrite>
But now I want to install an additional rewrite rule which should do the following:
Every link which includes "guestlogin_id=999" or "guestlogin_id=888" should be changed, so that
the Domain is replaced by another.
Example:
http://mydomain.test.org/TEST/Login.aspx?guestlogin_id=999?tzo=90
should be changed to
http://newdomain.test.org/TEST/Login.aspx?guestlogin_id=999?tzo=90
The rule should be able to handle it like *guestlogin_id=999* or *guestlogin_id=888*
then replace "mydomain" to "newdomain".
Is this possible? Can someone please help me with this?
Thanks in advanced.