使用rel =“next”rel =“prev”HTTP标头的分页SEO

时间:2011-09-28 16:22:04

标签: seo pagination http-headers

我正在尝试对网站上的分页控件执行一些搜索引擎优化。

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

Unfortunatley,由于MVC3的设计决定/限制与渲染sections and defining their content within Partials,我无法做到这一点。

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

3 个答案:

答案 0 :(得分:3)

这是answered by Maile Ohye

  

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

     

链接:http://www.example.com/article?story=abc&page=1;的rel = “PREV”

     

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

答案 1 :(得分:2)

Google支持来自Google员工的this post rel = prev /下一个HTTP标题

答案 2 :(得分:1)

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