如何让搜索引擎更喜欢更新的内容而不是档案?
我们存档每个版本的文档,但谷歌的顶部结果通常是几年前的,而不是最新版本的。如果我们使用 robots.txt 完全禁止对旧内容建立索引,那么包含该版本号的搜索将不再有帮助。旧文档仍然可以通过浏览我们的网站来访问,但不能在谷歌结果中访问。
有几个非官方镜像通常根本不会更新,所以如果我们不允许存档,我担心对已弃用 API 的搜索将落在这些镜像上,而不是更合适的位置,例如我们的变更日志/弃用通知/手册页。
有没有办法在不完全取消旧版本索引的情况下说首选特定版本? SEO入门指南似乎没有任何关于这种情况的说法。
We archive documentation for every release, but the top google result is often several years old instead of from the latest release. If we use robots.txt to disallow indexing the old stuff entirely, then a search including that version number would no longer be helpful. The old docs would still be accessible by navigating our site, but not in the google result.
There are several unofficial mirrors that are typically not updated at all, so if we disallow the archives, I'm concerned that searches for deprecated APIs will land on those mirrors instead of more appropriate places like our changelog/deprecation notice/man page.
Is there a way to say that a specific version is preferred without entirely de-indexing the old version? The SEO Starter Guide doesn't seem to have anything to say about this scenario.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您最好的选择是创建 Google xml 站点地图,并将内容页面的优先级设置为高于存档页面。这并不能保证任何事情,但这可能是您真正可以尝试控制它的唯一方法。我不会太担心,只需放置一个有关已弃用的 API 的通知和返回主页的链接即可。
Your best bet is to create a google xml sitemap and set the priority of your content pages higher than the archives. This is no guarantee of anything, but it's probably the only thing you can really do to attempt to control it. I wouldn't worry about it too much, just put a notice about the deprecated APIs and a link back to the home page.