2

Can I put both <url> and <sitemap> index inside my <sitemapindex>? I have a site example.com and my main sitemap stores here example.com/sitemap.xml and contains following:

<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>

So I have a few <url> (which are pages) and a lot of <sitemap> elements (which are sitemapindexes too).

How to organize that structure?

4

1 回答 1

1

不,您不能,因为 sitemapindex 文档只能引用站点地图文档。

请参阅此处了解更多信息:http ://www.sitemaps.org/protocol.html#index

于 2013-10-14T10:37:10.330 回答