using the following code
context.Response.StatusCode = 301; context.Response.Redirect(newUrl, true); context.Response.End();
I can see in
If you're using ASP.Net 4.0, you can use Response.RedirectPermanent, which will use 301 instead of 302.