0

how to create rule for IIS redirection www1 domain to www. example www1.xyz.com -> www.xyz.com

1 Answers1

1

If you want to redirect from www1 to www, you can refer to this link:

<rule name="redirect to www" enabled="false" stopProcessing="true">
   <match url="^(.*)$" />
     <conditions>
        <add input="{HTTP_HOST}" pattern="www1.example.com" />
     </conditions>
   <action type="Redirect" url="http://www.example.com/{R:1}" />
</rule>
samwu
  • 3,857
  • 3
  • 11
  • 25