title: Rewriter does not work
body: <p>I have a web site with some sub domain.  For rewriting, I use this code in my web.config</p>
  
  <pre><code>&lt;if header="HTTP_HOST" match="^(?:www\.)?([^.]+)\.([^.]+)\.([^.]+)$"&gt; 
      &lt;set property="subdomain" value="$1"/&gt; 
      &lt;set property="domain" value="$2"/&gt; 
      &lt;set property="tld" value="$3"/&gt; 
      &lt;rewrite url="~/Default.aspx" to="~/userPage.aspx?pagename=${subdomain}&amp;defaultpage=yes" processing="stop"/&gt; 
      &lt;!--&lt;rewrite url="~/Default.aspx" to="~/Default.aspx" processing="stop"/&gt;--&gt; 
  &lt;/if&gt;
  </code></pre>
  
  <p>When I test website with this address everything is good: <a href="http://www.sub1.mysite.com/coHome.aspx" rel="nofollow">http://www.sub1.mysite.com/coHome.aspx</a></p>
  
  <p>But when I want to test this address: <a href="http://www.sub1.mysite.com" rel="nofollow">http://www.sub1.mysite.com</a></p>
  
  <p>...the rewrite doesn't work.</p>