Cant figure out how to route my NON-MVC site from sitemap.xml to another .aspx page
问题 When searching google the only solutions for this come up for MVC websites. My asp.net 4.0 site is not MVC. I want requests for sitemap.xml to load another dynamic .aspx page so I can generate links for google on the fly. I have spent hours searching, please if you know where I can find the answer, let me know. I have tried using RouteTable.Routes.Add("SitemapRoute", new Route("sitemap.xml", new PageRouteHandler("~/sitemap.aspx"))) 回答1: Your code is correct, and should be placed in the