title: ASP.NET redirect request to a subdomain (blog or www)
body: <p>What is the simplest way to redirect a web request to an ASP.NET application to a subdomain?</p>
  
  <p>If a request comes into the URL <code>http://somesite.com/foo.aspx</code>, the new destination URL should be</p>
  
  <ul>
  <li><code>http://www.somesite.com/foo.aspx</code> or </li>
  <li><code>http://blog.somesite.com/foo.aspx</code></li>
  </ul>
  
  <p>How can you programmatically redirect the request to the subdomain, keeping the rest of the URL intact?</p>