gpt4 book ai didi

seo - 交叉提交的站点地图

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:43:32 25 4
gpt4 key购买 nike

我浏览了以下链接 http://www.sitemaps.org/protocol.html对于站点地图和交叉提交,但如果以下方法正确或不正确,则没有得到澄清:

我有以下网站,一个供桌面用户使用,另一个供移动用户使用,它们都提供不同的内容:https://www.mainsite.comhttps://mobile.site.com 两个域都指向同一个网站物理根目录,并且基于用户设备的域 URL被改变了。

我在这个根目录中放置了一个 robots.txt 文件,其中有一个 sitemap_index.xml 文件的条目:

sitemap: https://www.mainsite.com/sitemap_index.xml

在 sitemap_index 文件中

    <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>
https://www.mainsite.com/sitemap_desktop_www.xml
</loc>
<lastmod>2015-09-04</lastmod>
</sitemap>
<sitemap>
<loc>
https://mobile.site.com/sitemap_mobile_www.xml
</loc>
<lastmod>2015-05-22</lastmod>
</sitemap>
</sitemapindex>

这种方法是否正确?

如果机器人读取域 www.mainsite.com 和 sitemap_index.xml 中的 robots.txt 和 sitemap_index.xml 文件,它会忽略 mobile.site.com 吗?

最佳答案

您必须在 Google 网站管理员中将您的两个网站添加为两个属性,并且在每个属性中您都可以添加 XML 站点地图而不需要 robots.txt

Google 将开始抓取您的网站并将其编入索引,并查看每个域的 XML 站点地图。

关于seo - 交叉提交的站点地图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37369500/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com