What I want is to redirect poo.example.com
to poo.example.com/home.ashx
but I am failing with the following code;
<rewrite>
<rules>
<rule name="Redirect to HTTPS" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />
</rule>
<rule name="Redirect poo.example.com to poo.example.com/home.ashx" patternSyntax="ECMAScript" stopProcessing="true">
<match url="(./)" />
<action type="Redirect" url="https://{HTTP_HOST}/home.ashx" />
</rule>
</rules>
</rewrite>
I am on IIS 7.5.
NOTE
I tired using default document but it didn't work. My app is an asp.net mvc app. It could be related to that but this is not an issue here. I need to implement that with IIS URL Rewrite feature.