This question already has an answer here:

I have an archive page that displays the number of articles published. Because there were so many, I ran a pagination script:


where p is the page number and pp is number of articles to display per page.

The pagination looks like this:

Prev  1  2  3  4 ... 12   NEXT

with each item linking to p like <a href="?p=x">x</a>.

I also have the items per page setter: 25 | 50 | 100 (<a href="?pp=y">y</a>).

Now I have a PHP script that fixes pp into a session variable. But I am worried about duplicate content (since incrementing pp values will be inclusive) and also content not getting indexed because its not in the pagination link. so in the example above, pages 5-11 will not be indexed.

Any ideas on how to fix this?

marked as duplicate by Stephen Ostermiller seo Mar 21 '18 at 18:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Set a canonical link on each of your item pages (not pagination pages) and make sure all the item page URLs are registered in your sitemap.xml. Make sure this sitemap is defined in your robots.txt. Then, let crawlers do their job.

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