Skip to content

Instantly share code, notes, and snippets.

@nicolasguzca
Created September 17, 2017 14:38
Show Gist options
  • Save nicolasguzca/eaaf35109380878526f1bf2a973aca1e to your computer and use it in GitHub Desktop.
Save nicolasguzca/eaaf35109380878526f1bf2a973aca1e to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect Subfolder" stopProcessing="true">
<match url="^" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" appendQueryString="false" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment