title: Redirect Subdomain URL to another SubDomain in IIS
body: <p>I need to redirect a "fake" sub domain to a real subdomain in IIS 7.5. The reason is that the marketing department doesn't want to use the actual website address in print pieces.</p>
  
  <p><strong>Actual site URL:</strong></p>
  
  <p>reporting.usapartners.com</p>
  
  <p><strong>Marketing dept wants</strong>
  report.usapartners.com (fake) to <strong>redirect to</strong> reporting.usapartners.com (real)</p>
  
  <p>Again, report.usapartners.com does not exist, only reporting.usapartners.com exists</p>
  
  <p><strong>Here is what I tried</strong></p>
  
  <p>I added a binding in IIS, for the site reporting.usapartners.com. I added report.usapartners.com as the host name and used the reporting.usapartners.com IP address</p>
  
  <p>Then I went into reporting.usapartners.com web.config and added this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;rewrite&gt;
      &lt;rules&gt;
          &lt;rule name="report" stopProcessing="true"&gt;
            &lt;conditions logicalGrouping="MatchAll"&gt;
              &lt;add input="{HTTP_HOST}" pattern="report.usapartners.com" negate="false" /&gt;
            &lt;/conditions&gt;
            &lt;action type="Redirect" url="http://reporting.usapartners.com" appendQueryString="false" redirectType="Permanent" /&gt;
          &lt;/rule&gt;
      &lt;/rules&gt;
  &lt;/rewrite&gt;
  </code></pre>
  
  <p>Looks like my solution creates an alias that cannot be redirected to.</p>
  
  <p>Am I even approaching this problem correctly? Seems like it should be a simple problem to solve but perhaps not? Any ideas are welcomed and appreciated.</p>
  
  <p>Thanks</p>