title: web.config redirect multiple domains to one
body: <p>Hi  i am trying to redirect my domain aliases to one domain.</p>
  
  <p>I currently have this rule</p>
  
  <pre><code>&lt;rule name="WWW Rewrite" enabled="true"&gt;
    &lt;match url="(.*)" /&gt;
      &lt;conditions&gt;
        &lt;add input="{HTTP_HOST}" negate="true"
          pattern="^www\.([.a-zA-Z0-9]+)$" /&gt;
      &lt;/conditions&gt;
      &lt;action type="Redirect" url="http://www.domain.com/{R:0}"
        appendQueryString="true" redirectType="Permanent" /&gt;
    &lt;/rule&gt;
  </code></pre>
  
  <p></p>
  
  <p>It works perfect when the alias doesnt have the www in front.. how do i say redirect all that is not equal to this domain</p>
  
  <p>thanks</p>