Guest User

Untitled

a guest
Jan 18th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <rule name="HTTP to HTTPS redirect" enabled="false" stopProcessing="true">
  2. <match url="http://(.*)" />
  3. <conditions>
  4. <add input="{HTTPS}" pattern="^OFF$" />
  5. </conditions>
  6. <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" />
  7. </rule>
  8.  
  9. <rule name="HTTP to HTTPS redirect2" stopProcessing="true">
  10. <match url="(.*)" />
  11. <!-- Require SSL must be OFF in the site settings -->
  12. <conditions>
  13. <add input="{HTTPS}" pattern="off" ignoreCase="true" />
  14. </conditions>
  15. <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}{REQUEST_URI}" />
  16. </rule>
Add Comment
Please, Sign In to add comment