首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何增加站点索引的数量

问如何增加站点索引的数量
EN

Stack Overflow用户
提问于 2015-05-15 10:15:29
回答 1查看 90关注 0票数 0

如果我能有这么多的站点索引,我就会被问到:

代码语言:javascript
复制
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://domain.com/sitemap/destinatieTag.xml</loc>
<lastmod>2015-02-01T05:00:34+02:00</lastmod>
</sitemap>
</sitemapindex>

我的意思是一个sitemapindex用于引用athor sitemapindex,或者一个sitemap的最大限制是什么?

如果destinatieTag.xml是athor的话

代码语言:javascript
复制
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://domain.com/sitemap/myUrlXML.xml</loc>
<lastmod>2015-02-01T05:00:34+02:00</lastmod>
</sitemap>
</sitemapindex>

并且只有myUrlXML.xml包含一个url示例:

代码语言:javascript
复制
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://domain.com/romania</loc>
</url>
</urlset>

我需要在我的网站上做一个站点地图,并有一个需要为一个对象列表做部分置换的医学链接,对于所有的部分置换都需要对athor对象列表进行部分置换,这样我就可以有一个这样的url,如果这两个列表只涉及两个对象:

代码语言:javascript
复制
/exame/0/0
/exame/0/0;1
/exame/0/1
/example/0;1/0
/example/0;1/0;1
/example/0;1/1
/example/1/0
/example/1/0;1
/example/1/1

而这个力量有大数字的马赫url。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-05-15 11:59:58

对于Google,sitemap可以包含对其他站点地图的引用,但只有一个级联级别。所以sitemapindex到destinatieTag.xml是可以的,而destinatieTag.xml到myUrlXML.xml则不是。

在sitemapindex中可以有多达50000个URL指向其他站点地图。这些站点地图可以包含到网页上的50000个URL。所有这些站点地图和网址必须是为同一个网站。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30256933

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档