Ho un file web.config che invia automaticamente il traffico a HTTPS. Tuttavia, se qualcuno entra in MyDomain.com, passerà allo https://mydomain.com e se qualcuno accede a www.mydomain.com, passerà allo https://www.mydomain.com.Web.config. Reindirizza tutto il traffico su www.my ... Usando l'elemento rules.
Voglio TUTTO il traffico per andare a https://www.mydomain.com. È possibile ciò usando l'elemento rules di web.config? Il mio file attualmente appare così:
<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>
Chiunque? In alternativa, consiglierei anche su come utilizzare la GUI di IIS. – Paul