New to MVC routing, forgive the basic nature of the question.
Is it possible to configure the routing in ASP.Net MVC so that someone browsing to, say, http://www.mysite.com/sitemap.xml is redirected to a view that renders XML content? I assume so but am not sure of a good approach.
You could register a route before your default route:
and then you could have a
SitemapController:Now when you navigate to
/sitemap.xml, theIndexaction of theSitemapcontroller will get executed.