title: IIS rewrite rule to redirect specific domain url to different url on same domain
body: <p>I simply want an IIS 7.5 rewrite rule to redirect <a href="http://www.domain.com/url1" rel="nofollow noreferrer">http://www.domain.com/url1</a> to <a href="http://www.domain.com/url2" rel="nofollow noreferrer">http://www.domain.com/url2</a> (same domain). This can be achieved by:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;rule name="Redirect url" enabled="true" stopProcessing="true"&gt;
      &lt;match url="^url1" /&gt;
      &lt;action type="Redirect" url="http://www.domain.com/url2"
        appendQueryString="false" redirectType="Permanent" /&gt;
  &lt;/rule&gt;
  </code></pre>
  
  <p>However, this website listens to several domains, thus above becomes a global rule for all domains. How do I make this specific to domain.com? Have tried changing match url and adding conditions but cannot get it to work. Thanks.</p>