Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <rewrite>
- <rules>
- <rule name="Allow LetsEncrypt" patternSyntax="Wildcard" stopProcessing="true">
- <match url=".well-known/*" />
- <action type="None" />
- </rule>
- <rule name="non-www-https to www https" enabled="true" stopProcessing="true">
- <match url=".*" />
- <conditions>
- <add input="{HTTP_HOST}" pattern="^[^\.]+\.[^\.]+$" />
- <add input="{HTTPS}" pattern="off" ignoreCase="true" />
- <add input="{HTTP_HOST}" pattern="localhost" negate="true" />
- </conditions>
- <action type="Redirect" url="https://www.{HTTP_HOST}/{R:0}" />
- </rule>
- </rules>
- </rewrite>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement