我有一个SitemapActionResult覆盖了ActionResult,并在点击http://www.sprelle.no/Home/SiteMap时提供了一个SEO sitemap.xml .到现在为止还挺好.
不过,我想要的是在Google访问/sitemap.xml时提供sitemap.xml.为了实现这一点,我需要一个看到"sitemap.xml"并指向/ Home/Sitemap的路线.
如何创建此映射(在Routes表中)?
sitemap asp.net-mvc seo sitemap.xml
asp.net-mvc ×1
seo ×1
sitemap ×1
sitemap.xml ×1