c# - Static URL with extension not getting routed to respective controller -
c# - Static URL with extension not getting routed to respective controller -
i have defined custom route sitemap this
routes.maproute( name: "sitemap", url: "sitemap.xml", defaults: new { controller = "seo", action = "sitemap" } );
in scenario when request url domain.com/sitemap.xml should routed seo controller , sitemap action required info dynamically , generate sitemap.xml file , served here every thing working fine , problem when request url sec time not getting routed controller , same old content rendered think iis serving static file can 1 help me in overcome issue
c# routing asp.net-mvc-5
Comments
Post a Comment