carlosmunozledesma
5/3/2017 - 7:59 AM

código en el webconfig para redirigir a HTTPS

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>