【问题标题】:How does google crawl pages that have a numbered or next or previous buttons谷歌如何抓取具有编号或下一个或上一个按钮的页面
【发布时间】:2013-11-29 18:10:32
【问题描述】:

我有一个包含分页结果的搜索页面。 Google 如何知道要转到下一页,以便它可以抓取所有内容而不仅仅是第一页?

【问题讨论】:

    标签: search google-search web-crawler


    【解决方案1】:

    Google 实际上建议对分页页面使用 rel="next" 和 rel="prev"。

    基本上你会在文档的头部插入两个额外的标签(除了第一页和最后一页):

    <head>
        …
        <link rel="prev" href="http://www.example.com/article?story=abc&page=1" />
        <link rel="next" href="http://www.example.com/article?story=abc&page=3" />
        …
    </head>
    

    更多信息可以在他们的博客中找到:http://googlewebmastercentral.blogspot.ch/2012/03/video-about-pagination-with-relnext-and.html

    即使您不这样做,谷歌通常也会很好地索引分页结果。但是帮助他们并没有什么坏处。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-04-09
      • 1970-01-01
      • 2017-09-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-29
      相关资源
      最近更新 更多