title: How to create web.config URL Rewrite to redirect a subdomain to a pageroute
body: <p>I want to create a rewrite rule on web.config like subdomain.domain.com to www.domain.com/abc/xyz and keep the url subdomain.domain.com on browser bar.
  How can I do that? I tried a lot of configurations but seems that this is not possible.</p>
  
  <p>Below is a example that i tried:</p>
  
  <pre><code>&lt;rewrite&gt;
    &lt;rules&gt;
      &lt;rule name="SubDomain" stopProcessing="true"&gt;
        &lt;match url="(.*)" /&gt;
        &lt;conditions&gt;
          &lt;add input="{HTTP_HOST}" pattern="^(?!www)(\w+)\.domain\.com$" /&gt;
        &lt;/conditions&gt;
        &lt;action type="Rewrite" url="http://www.domain.com.com/abc/xyz" /&gt;
      &lt;/rule&gt;
    &lt;/rules&gt;
  &lt;/rewrite&gt;--&gt;
  </code></pre>