código en el webconfig para redirigir a HTTPS
<system.webServer>
<rewrite xdt:Transform="Insert">
<rules>
<rule name="Redirect to https">
<match url="(.*)"/>
<conditions>
<add input="{HTTPS}" pattern="Off"/>
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}"/>
</rule>
<rule name="Redirect to ca">
<match url="^$" />
<action type="Redirect" url="/ca"/>
</rule>
</rules>
</rewrite>
</system.webServer>