Advertisement
hecrus

Add WWW Rewrite

Oct 19th, 2021
1,172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.32 KB | None | 0 0
  1.  <rule name="Add WWW" stopProcessing="true">
  2.               <match url="^(.*)$" />
  3.               <conditions>
  4.                  <add input="{HTTP_HOST}" pattern="^(?!www\.)(.*)$" />
  5.               </conditions>
  6.               <action type="Redirect" url="https://www.{C:0}{PATH_INFO}" redirectType="Permanent" />
  7. </rule>
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement