Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Based on this article

I have a SERP that does infinite scrolling to load results greater than 10.

How do I go about implement rel=next & rel=prev for that?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

The first page in the sequence should not have any rel next or rel prev, the second page should have:

<link rel="next" href="http://www.example.com/article?story=abc&page=2"/>

and

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

And so on through the sequence until it finishes.

Since your page infinitely scrolls and these tags are designed to go into the <head> of the page I don't think it's possible to implement these tags in your case - as there is actually only a single page.

share|improve this answer

I assume you already have an alternative conventional pagination mechanism set up for users who can't run JavaScript or who have it turned off. Just remember that search engines also belong in that group of users, and set up your rel=prev and rel=next links accordingly.

The only slightly tricky bit may be integrating your conventional and endless pagination methods seamlessly, so that, for example, a user who follows a link to a page in your conventional navigation scheme and has JS enabled will be shown the appropriate page in the endless scrolling navigation. The actual tricky part is doing that smoothly and efficiently, so that e.g. following a link to page 100 in the results won't crash my browser.

You might also want to make your infinite scrolling list make use of "hash-bang" URLs, so that a) your users can save links to specific points in your infinite list, and b) search engines that encounter such links can find their way to the appropriate page in the conventional list. For more information, see e.g. "How To: Allow Google to Crawl your AJAX Content".

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.