<rewrite> <rules> <rule name="redirecthttps" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="^off$" /> </conditions> <action type="Redirect" url="https://{HTTP-HOST}/{R:1}"/> </rule> </rules> </rewrite>
<conditions> <add input="{HTTPS}" pattern="off" /> </conditions>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)