hecrus

Add WWW Rewrite

Oct 19th, 2021
800
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
RAW Paste Data