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

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

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

 

posted @ 2016-01-19 15:12  吖然-jronny  阅读(267)  评论(0编辑  收藏  举报