我可以把两个<url>
都放上吗?和 <sitemap>
我的索引 <sitemapindex>
?我有一个站点 example.com,我的主要站点地图存储在这里 example.com/sitemap.xml 并包含以下内容:
<sitemapindex>
<url>
<loc>example.com/catalog</loc>
</url>
<sitemap>
<loc>ny.example.com/sitemap.xml</loc>
</sitemap>
<sitemap>
<loc>la.example.com/sitemap.xml</loc>
</sitemap>
</sitemapindex>
所以我有几个<url>
(这是页面)和很多 <sitemap>
元素(也是站点地图索引)。
如何组织该结构?
最佳答案
不可以,因为 sitemapindex 文档只能引用 sitemap 文档。
查看此处了解更多信息:http://www.sitemaps.org/protocol.html#index
关于sitemap - <sitemapindex> 可以同时包含 <url> 和 <sitemap> 项吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16749001/