Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <rule name="HTTP to HTTPS redirect" enabled="false" stopProcessing="true">
- <match url="http://(.*)" />
- <conditions>
- <add input="{HTTPS}" pattern="^OFF$" />
- </conditions>
- <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" />
- </rule>
- <rule name="HTTP to HTTPS redirect2" stopProcessing="true">
- <match url="(.*)" />
- <!-- Require SSL must be OFF in the site settings -->
- <conditions>
- <add input="{HTTPS}" pattern="off" ignoreCase="true" />
- </conditions>
- <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}{REQUEST_URI}" />
- </rule>
Add Comment
Please, Sign In to add comment