Necesito redirigir mi sitio HTTP a HTTPS, he agregado la regla siguiente pero obtengo 403 Error al intentar usar http://www.example.com, funciona bien cuando escribo https://www.example.com en navegador.Cómo redirigir HTTP a HTTPS en la aplicación MVC (IIS7.5)
<system.webServer>
<rewrite>
<rules>
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
A continuación regla? ¿Qué quieres decir? –
He agregado una regla usando el módulo "URL rewirte" en IIS y estaba en web.config. – LLM