Devo reindirizzare il mio sito HTTP a HTTPS, ho aggiunto sotto la regola ma ottengo 403 Errore quando provo usando http://www.example.com, funziona bene quando digito https://www.example.com in browser.Come reindirizzare HTTP a HTTPS nell'applicazione 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>
Sotto regola? Cosa intendi? –
Ho aggiunto la regola utilizzando il modulo "URL rewirte" in IIS e quello era in web.config. – LLM