Hello,
i need to do a rewrite and a redirect and off course because i am a total noob in IIS i dont know how.
i have a site http://moj.shopsy.si with default page Shopsy_WEB/AccountPages/Login.aspx . Now i made another sitehttps://bigbang.shopsy.si and made a reverse proxy to moj.shopsy.si.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="ReverseProxyInboundRule1" stopProcessing="false">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="http://moj.shopsy.si/{R:1}" />
</rule>
</rules>
<outboundRules>
<rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
<match filterByTags="A, Form, Img" pattern="^http(s)?://moj.shopsy.si/(.*)" />
<action type="Rewrite" value="http{R:1}://bigbang.shopsy.si/{R:2}" />
</rule>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>
<urlCompression doStaticCompression="false" doDynamicCompression="false" />
</system.webServer>
</configuration>
Now the problem is, i don't want to open default page on site moj.shopsy.si but i want to open m1m0v0b2/Shopsy_WEB/AccountPages/register.aspx?res=1
and i am lost... :s
thx for any help