hecrus

Remove WWW

Sep 17th, 2021
739
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <rule name="Remove www" stopProcessing="true">
  2.   <match url="(.*)" ignoreCase="true"></match>
  3.   <conditions logicalGrouping="MatchAll">
  4.     <add input="{HTTP_HOST}" pattern="^www\.(.+)$"></add>
  5.   </conditions>
  6.   <action type="Redirect" url="http://{C:1}/{R:0}" appendQueryString="true" redirectType="Permanent"></action>
  7. </rule>
RAW Paste Data