我们使用自定义站点地图提供程序从递归数据库表中填充 ASP.Net 应用程序的菜单控件,因此不使用静态 xml web.sitemap 文件:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="" title="" description="">
<siteMapNode url="" title="" description="" />
<siteMapNode url="" title="" description="" />
</siteMapNode>
</siteMap>
出于 SEO 优化的原因,即使应用程序甚至不使用 web.sitemap 文件,将 customsitemap 提供者的项目导出到 web.sitemap 文件中是否有用?
如果它确实对 SEO 产生了积极影响,那么使用什么方法将 sitemapprovider 项目以正确的格式放入 xml 文件中?
你会怎么做呢?