Make a global asax file and add the code to it the example ive added my own site, but you can change the address. Remove the www. in case you want the redirect to go from www. to http://example insted.
Global.asax
protected void Application_BeginRequest(object sender, EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location", "http://www.magic-mouse.net" + Request.Url.AbsolutePath);
}