Option 1 . Use only 51 deducts for the mobile device discovery part and enable redirection yourself. Remove the element <redirect>from your web.config and try something like this in the Global.asax file:
void Application_BeginRequest(object sender, EventArgs e)
{
if (HttpContext.Current.Request.Browser.IsMobileDevice)
{
Response.Redirect("http://m.mydomain.com" + Request.RawUrl);
}
}
2. <redirect> web.config originalUrlAsQueryString=true. origUrl , .