title: URL Rewrite IIS 7 - url redirect not working
body: <p>I have a website running on IIS 7 bound to port 80 with 2 domains (for our purposes - example.com &amp; test.com) pointed at it.</p>
  
  <p>example.com is our canonical name so I would like any client that hits test.com to be redirected to example.com.</p>
  
  <p>I have been trying to use the IIS 7 Rewrite module. However it doesn't seem to have any effect whatsoever. How can I trouble shoot this?</p>
  
  <p>Here's the rule I put in my web.config. </p>
  
  <pre><code>&lt;rewrite&gt;
     &lt;rules&gt;
        &lt;rule name="rule1" enabled="true" patternSyntax="Wildcard" stopProcessing="true"&gt;
            &lt;match url="*test.com*" /&gt;
            &lt;action type="Redirect" url="{R:1}example.com{R:2}" /&gt;
        &lt;/rule&gt;
     &lt;/rules&gt;
  &lt;/rewrite&gt;
  </code></pre>