How to redirect with HttpContext
<p>My questions are:</p>

<ol>
<li>So I need to create a custom class / HttpHandler and throw this code in it?  Or can I place this somewhere else like in the global.asax?</li>
<li>How do I check for the Host (so check for www.mydomain.com) incoming so I know when to redirect?</li>
</ol>

<p>Code:</p>

<pre><code>if ("comes from certain domain")
{
  context.Response.Status = "301 Moved Permanently";
  context.Response.AddHeader("Location", "http://www.testdomain.com/Some.aspx");
}
</code></pre>
