输入域名之后默认首页跳转到其他链接去

输入域名之后默认首页跳转到其他链接去

1 string url = HttpContext.Current.Request.RawUrl.ToString();
2 if (url == "/")
3 {
4     HttpContext.Current.Response.Redirect("要跳转的链接");
5 }

 

你可能感兴趣的:(输入域名之后默认首页跳转到其他链接去)