лучший способ маршрутизации URL-адресов Visual Studio C#

этот 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 }
                ); 

person Jasveer Singh    schedule 03.07.2021    source источник
comment
Если вы хотите MapRoute в html-файл, вы можете обратиться к первому ответу в ссылке C# .net MapRoute в файл html   -  person Jack J Jun - MSFT    schedule 05.07.2021