Advertisement
hubert17

redirect to https www

Jun 11th, 2024
650
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.69 KB | None | 0 0
  1.     <rewrite>
  2.       <rules>
  3.         <rule name="Allow LetsEncrypt" patternSyntax="Wildcard" stopProcessing="true">
  4.           <match url=".well-known/*" />
  5.           <action type="None" />
  6.         </rule>
  7.         <rule name="non-www-https to www https" enabled="true" stopProcessing="true">
  8.           <match url=".*" />
  9.           <conditions>
  10.             <add input="{HTTP_HOST}" pattern="^[^\.]+\.[^\.]+$" />
  11.             <add input="{HTTPS}" pattern="off" ignoreCase="true" />
  12.             <add input="{HTTP_HOST}" pattern="localhost" negate="true" />
  13.           </conditions>
  14.           <action type="Redirect" url="https://www.{HTTP_HOST}/{R:0}" />
  15.         </rule>
  16.       </rules>
  17.     </rewrite>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement