title: Trying to map subdomain to another using ISAPI Rewrite on IIS 6
body: <p>I've been experiementing with URL rewriting in IIS 6 and 7. On IIS 6, I've been using ISAPI Rewrite 3 and am trying to map URLs for one subdomain to another e.g.</p>
  
  <p><a href="http://subdomain1.domain.com/" rel="nofollow noreferrer">http://subdomain1.domain.com/</a>*</p>
  
  <p>would be mapped to:</p>
  
  <p><a href="http://subdomain2.domain.com/" rel="nofollow noreferrer">http://subdomain2.domain.com/</a>*</p>
  
  <p>I've tried to achieve this using:</p>
  
  <p>RewriteEngine on</p>
  
  <p>RewriteCond Host: subdomain1.domain.com
  RewriteRule (.*) subdomain2.domain.com/$1</p>
  
  <p>but nothing seems to happen or show up in the IIS log or rewrite.log. I must be missing somethin to enable logging here - any ideas? Also, if anyone could suggest why my rules don't seem to be working it would be much appreciated.</p>
  
  <p>One further question (sorry!) - was wondering on IIS 7 using the rewrite module, I can use the rewrite rules to redirect to content hosted on another instance of IIS (on a different server machine) but can't use the rewrite action to simply mask the URL - is this possible? At the moment, I'm just getting a 403 - forbidden error.</p>
  
  <p>Many thanks for your help.</p>