关于MVC路由的问题
//吧首页
routes.MapRoute(
name: "Bar",
url: "Bar/Index_{Id}_{classifyId}_{readType}_{page}.html",
defaults: new { controller = "bar", action = "Index", Id = 1, classifyId = 1, readType = 1, page = 1 },
constraints: new { Id = @"\d+", classifyId = @"\d+", readType = @"\d+", page = @"\d+" }
);
//名家吧首页
routes.MapRoute(
name: "StarBar1",
url: "Bar/StarBar_{Id}_{classifyId}_{readType}_{page}.html",
defaults: new { controller = "Bar", action = "StarBar", Id = 3162, classifyId = 1, readType = 1, page = 1 },
constraints: new { Id = @"\d+", classifyId = @"\d+", readType = @"\d+", page = @"\d+" }
);
http://localhost:1612/bar/Index_88_1_1_1.html 为什么这个地址可以访问
http://localhost:1612/bar/StarBar_3162_1_2_1.html 这个就是404呢 我是真醉了