0
나는 세 가지 경로가 있습니다ASP.Net MVC 라우팅 : 웹 사이트의 루트를 잡는 방법? 내를 Global.asax에서
//MemberHome is supposed to handle urls like http://localhost/johndoe
routes.MapRoute(
"MemberHome", // Route name
"{username}",
new { controller = "PublicMember", action = "Index", username = "username" }
);
//Home is supposed to catch http://localhost/
routes.MapRoute(
"Home",
""
);
// the default way of doing things..
routes.MapRoute(
"Default",
"{controller}/{action}/{id}",
new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
문제는, 나는 그들이 때 은 그러나 모두 활성화 (그냥 집에하거나 MemberHome) separtely 작업을 얻을 수의 홈 또는 MemberHome 둘 중 하나 404 리소스를 찾을 수 없습니다.
어떻게하면이 작업을 얻을 수 있습니까?