jameskind
jameskind

Reputation: 1107

SEO of Pagination using rel="next" rel="prev" HTTP Headers

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>?

Upvotes: 3

Views: 3658

Answers (3)

Olaf Pleines
Olaf Pleines

Reputation: 51

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

Upvotes: 3

jameskind
jameskind

Reputation: 1107

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"

Upvotes: 4

Rich Bradshaw
Rich Bradshaw

Reputation: 72965

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.

Upvotes: 1

Related Questions