Advertisement
hecrus

Remove WWW

Sep 17th, 2021
1,171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.33 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement