3

I am trying to perform some SEO on a pagination control I have on a website.

Following the Google guidelines, I would like to add link rel=next/prev i.e. <link href="/search/results?page=2" rel="next" /> to the <head> of my search results page.

Unfortunatley, due to a design decision / limitation of MVC3 with rendering sections and defining their content within Partials, I'm unable to do this.

So my question is - can I replicate the aforementioned functionality by adding a "Link" HTTP header, i.e. Link: <http://www.example.com/search/results?page=2>; rel="next" to the response and therefore not have to add the <link> tags in the <head>?

Community
  • 1
  • 1
jameskind
  • 1,097
  • 2
  • 13
  • 28

3 Answers3

3

This was answered by Maile Ohye.

@estrik: We support rel=”next” and rel=”prev” in the HTTP header. For example, for page=2 of an article, you could respond with the HTTP header:

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

Link: http://www.example.com/article?story=abc&page=3; rel="next"

Community
  • 1
  • 1
jameskind
  • 1,097
  • 2
  • 13
  • 28
2

Referring to this post from a Google employee rel=prev/next in the HTTP header is supported by Google

Olaf Pleines
  • 41
  • 1
  • 7
1

At the moment, I'm pretty sure they aren't supporting that, as they aren't support having the rel attribute on the anchor either.

Rich Bradshaw
  • 71,795
  • 44
  • 182
  • 241