этот URL работает нормально http://localhost:64333/get/5/6/1
но этот URL-адрес не работает http://localhost:64333/get/5/6/index-1.shtml показать страницу 404 не найдено
routes.MapRoute(
"OnlyAction",
"{action}/{id}/{sub_id}/{page_no}",
new { controller = "Home", action = "Index", id = UrlParameter.Optional, sub_id = UrlParameter.Optional, page_no = UrlParameter.Optional }
);
routes.MapRoute(
name: "Idpages",
url: "{action}/{id}/index-{page_no}.shtml",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional, sub_id = UrlParameter.Optional, page_no = UrlParameter.Optional }
);
routes.MapRoute(
name: "subIdPages",
url: "{action}/{id}/{sub_id}/index-{page_no}.shtml",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional, sub_id = UrlParameter.Optional, page_no = UrlParameter.Optional }
);