Skip to content

Commit

Permalink
Force redirect from http to https (BL-3966)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-polk committed Dec 7, 2016
1 parent 55df72b commit c4fed65
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Force HTTPS" enabled="true">
<match url="(.*)" ignoreCase="false" />
<conditions>
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

0 comments on commit c4fed65

Please sign in to comment.