【问题标题】:SEO of Pagination using rel="next" rel="prev" HTTP Headers使用 rel="next" rel="prev" HTTP 标头的分页搜索引擎优化
【发布时间】:2011-09-28 16:22:03
【问题描述】:

我正在尝试对网站上的分页控件执行一些 SEO。

Google guidelines 之后,我想将链接 rel=next/prev 即<link href="/search/results?page=2" rel="next" /> 添加到我的搜索结果页面的<head>

不幸的是,由于 MVC3 的设计决定/对渲染 sections and defining their content within Partials 的限制,我无法执行此操作。

所以我的问题是 - 我可以通过在响应中添加“链接”HTTP 标头(即 Link: <http://www.example.com/search/results?page=2>; rel="next")来复制上述功能,因此不必在<head>?

【问题讨论】:

    标签: seo pagination http-headers


    【解决方案1】:

    这是answered by Maile Ohye

    @estrik:我们在 HTTP 标头中支持 rel=”next” 和 rel=”prev”。例如,对于一篇文章的第 2 页,您可以使用 HTTP 标头进行响应:

    链接:http://www.example.com/article?story=abc&page=1; rel="prev"

    链接:http://www.example.com/article?story=abc&page=3; rel="下一个"

    【讨论】:

      【解决方案2】:

      Google 支持从 Google 员工 rel=prev/next 在 HTTP 标头中引用 this post

      【讨论】:

        【解决方案3】:

        目前,我很确定他们不支持这一点,因为他们也不支持在锚点上使用 rel 属性。

        【讨论】:

          猜你喜欢
          • 2012-01-29
          • 1970-01-01
          • 2011-11-10
          • 1970-01-01
          • 1970-01-01
          • 2012-05-10
          • 1970-01-01
          • 2023-01-05
          • 2015-01-16
          相关资源
          最近更新 更多