我新建了一个ASP.NET MVC站点,首页是http://localhost/home/index,如何设置选项达到直接访问http://localhost/就可以了?
放到routing规则的最后
routes.MapRoute( "网站首页", "{*values}", new { controller = "Home", action = "index"} );