In short
A long list (product category, blog, listings) is split into pages: /blog/, /blog/?page=2, /blog/?page=3. Crawlers only discover the items on later pages if each of those pages has its own URL and they are connected by real HTML links. The check consists of verifying this split, setting the right canonical on each page and, if the site uses infinite scroll or a “Load more” button, giving it a paginated version that crawlers can follow. Once done, every product or post in a list can be reached through <a href> links from the first page.
Why it matters
Googlebot follows the URLs found in the href attributes of <a> tags. It does not click buttons and does not trigger functions that wait for a user action, such as scrolling. A “Load more” button without a link, or infinite scroll without underlying pages, therefore leaves invisible every item that is not in the first batch.
Google's documentation on pagination gives precise rules:
- each page has a unique URL, for example with
?page=n; a#page=2fragment is ignored; - each page links to the next one with
<a href>, and all pages link to the first one; - the first page does not serve as the canonical for the whole series: each page has its own canonical;
- pages in the same series may share a title and description;
- the
rel="next"andrel="prev"tags are no longer used by Google, although other search engines may still use them.
AI assistant crawlers generally read the HTML returned by the server; nothing guarantees that they run JavaScript. Pagination made of HTML links is the only form that every crawler can rely on.
What it improves
- Discovery Products and posts on page 2 onwards are found by crawling, not only through the sitemap.
- Indexing The deep pages of the list stay connected to the site by links.
- Depth Pagination that offers links to several pages, not just “Next”, shortens the path to the last items. See limit the click depth of strategic pages (opens in a new tab).
- Experience A visitor can return to page 4 of a list, share it or bookmark it.
- Rankings No direct effect on the list page; the effect bears on the items it makes discoverable.
How to check
Are the pagination links in the HTML? Fetch the page without running JavaScript:
curl -s https://example.com/blog/ | grep -oE '<a [^>]*href="[^"]*(page[=/]|[?&]p=)[0-9]+[^"]*"' | head
href links to page 2 (and ideally 3, 4…) must appear. No results means that pagination depends on JavaScript or on a button.
Is page 2 correct?
curl -s "https://example.com/blog/?page=2" | grep -iE '<link[^>]+rel="canonical"|<meta[^>]+name="robots"'
Passing: the canonical points to https://example.com/blog/?page=2, not to page 1, and no noindex tag appears.
Do out-of-range pages return a 404?
curl -s -o /dev/null -w "%{http_code}\n" "https://example.com/blog/?page=99999"
Passing: 404. A 200 with an empty list creates an endless URL space. See avoid infinite URL spaces (opens in a new tab).
Without JavaScript: disable it in the browser's developer tools and reload the list. You must be able to reach page 2 by clicking. Search Console's URL Inspection also shows the HTML rendered by Google. See check dynamic pagination (opens in a new tab).
How to implement
Before you start
| Pattern | What the HTML needs | Verdict |
|---|---|---|
| Classic pagination (1, 2, 3, Next) | <a href> links to unique URLs |
Recommended |
| “Load more” button | The button is an <a href="?page=2"> link, intercepted by JavaScript |
Acceptable if the link exists |
| Infinite scroll | Underlying ?page=n pages directly accessible, URL updated while scrolling, pagination links in the HTML |
Acceptable if the pages exist |
| “View all” page | One URL that loads the whole list | Possible for short, lightweight lists |
Reference markup for page 2:
<head>
<title>Blog, page 2 | Thé des Lisières</title>
<link rel="canonical" href="https://example.com/blog/?page=2">
</head>
<nav aria-label="Pagination">
<a href="/blog/">Previous</a>
<a href="/blog/">1</a>
<a href="/blog/?page=2" aria-current="page">2</a>
<a href="/blog/?page=3">3</a>
<a href="/blog/?page=12">12</a>
<a href="/blog/?page=3">Next</a>
</nav>
Page 1 has the URL /blog/, not /blog/?page=1: redirect ?page=1 to /blog/ or give it a canonical pointing to /blog/.
Good to know: setting
noindexon page 2 onwards is possible, but these pages mainly serve to get the items in the list discovered. Keep them indexable and followed, unless a complete sitemap or a Merchant Center feed already covers every item.
Infinite scroll and “Load more” button
The principle, recommended by Google since 2014: each batch corresponds to a paginated page that works on its own, with no overlap between pages; JavaScript only chains these pages together and updates the URL.
<ul id="liste">
<!-- posts on the current page -->
</ul>
<a id="charger-plus" href="/blog/?page=3">Load more posts</a>
const lien = document.getElementById('charger-plus');
const liste = document.getElementById('liste');
lien?.addEventListener('click', async (event) => {
event.preventDefault();
const url = lien.href;
const html = await fetch(url).then((reponse) => reponse.text());
const page = new DOMParser().parseFromString(html, 'text/html');
liste.append(...page.querySelectorAll('#liste > li'));
history.pushState({}, '', url);
const suivant = page.getElementById('charger-plus');
if (suivant) {
lien.href = suivant.href;
} else {
lien.remove();
}
});
The link stays followable by crawlers; the visitor gets progressive loading. For automatic scrolling, trigger the same function with an IntersectionObserver on the link, and keep classic pagination at the bottom of the page or in the initial HTML.
WordPress
Versions WordPress 6.4 and later; Yoast SEO, Rank Math and WooCommerce as of November 2026.
Archives, categories and the blog are paginated natively as /page/2/, with HTML links generated by the_posts_pagination() in classic themes or by the Query Loop's “Pagination” block in block themes. WordPress returns a 404 beyond the last page.
- Archive canonicals: WordPress only outputs them on singular content. Yoast SEO and Rank Math add a self-referencing canonical on
/page/2/: this is the expected behavior. - Query Loop block outside an archive page: it paginates with a parameter such as
?query-12-page=2. Check that no plugin strips or redirects it. - Infinite scroll plugins: check that they keep the
/page/n/URLs and the pagination links in the HTML. - WooCommerce: the shop and product categories use
/page/2/; the number of products per page depends on the theme or on the shop's Customizer setting.
Shopify
Versions Online Store 2.0 themes, Liquid, November 2026.
Liquid pagination produces ?page=2 links:
{% paginate collection.products by 24 %}
{% for product in collection.products %}
{% render 'product-card', product: product %}
{% endfor %}
{{ paginate | default_pagination }}
{% endpaginate %}
Recent themes already use it. If an app or the theme adds infinite scroll or a “Load more” button, check with curl that the ?page=2 links are still present in the HTML, and check the canonical of ?page=2 in the source code.
PrestaShop
Versions PrestaShop 8 and 9.
Categories paginate as ?page=2. With the faceted search module, pagination combines with filters (?q=…&page=2): leave unfiltered category pages crawlable and handle filtered combinations as described in control filters and facets (opens in a new tab). Check the canonical of ?page=2: if the theme points it to page 1, fix the head template.
Magento
Versions Magento Open Source and Adobe Commerce 2.4.
Categories paginate with the ?p=2 parameter. Check the canonical generated when the category canonical option is enabled (Stores > Configuration > Catalog > Catalog > Search Engine Optimization): if ?p=2 declares page 1 as its canonical, fix the template or the SEO extension to get a self-referencing canonical.
Laravel
Versions Laravel 11 to 13.
paginate() generates ?page=2 URLs and HTML links with {{ $posts->links() }}. Add the 404 beyond the last page and the canonical:
public function index(): View
{
$posts = Post::query()->latest()->paginate(20);
abort_if($posts->isEmpty() && $posts->currentPage() > 1, 404);
return view('posts.index', ['posts' => $posts]);
}
@php
$canonical = $posts->currentPage() > 1 ? $posts->url($posts->currentPage()) : route('posts.index');
@endphp
<link rel="canonical" href="{{ $canonical }}">
simplePaginate() only displays “Previous” and “Next”: prefer paginate() to offer links to several pages and reduce depth.
Next.js
Versions Next.js 15 and 16 (App Router).
With the App Router, read the page from searchParams, return a 404 when out of range and use <Link>, which produces real <a href> links:
// app/blog/page.tsx
import Link from 'next/link';
import { notFound } from 'next/navigation';
import type { Metadata } from 'next';
type Props = { searchParams: Promise<{ page?: string }> };
export async function generateMetadata({ searchParams }: Props): Promise<Metadata> {
const page = Number((await searchParams).page ?? 1);
return {
alternates: { canonical: page > 1 ? `/blog?page=${page}` : '/blog' },
};
}
export default async function Blog({ searchParams }: Props) {
const page = Number((await searchParams).page ?? 1);
if (!Number.isInteger(page) || page < 1) {
notFound();
}
const { posts, totalPages } = await getPosts(page);
if (page > totalPages) {
notFound();
}
return (
<>
<ul>{posts.map((post) => <li key={post.slug}>{post.title}</li>)}</ul>
<nav aria-label="Pagination">
{page > 1 && <Link href={page === 2 ? '/blog' : `/blog?page=${page - 1}`}>Previous</Link>}
{page < totalPages && <Link href={`/blog?page=${page + 1}`}>Next</Link>}
</nav>
</>
);
}
getPosts is your data access function. A client-side infinite scroll component can be layered on top, provided these links remain server-rendered.
Common mistakes
- Canonical of every page pointing to page 1: Google explicitly advises against it; items on later pages lose their crawl path.
- Fragment-based pagination (
#page=2): Google ignores the fragment and may skip the link. - “Load more” button without an
href: crawlers do not click. - Infinite scroll without underlying pages: only the first items are discovered.
- Out-of-range page returning a 200:
?page=99999displays an empty list instead of a 404. - Overlapping pages or pages whose content changes over time (relative date parameter): crawlers see unstable duplicates.
?page=1duplicating the main page: redirect or canonicalize it.- Only “Previous” and “Next” on a fifty-page list: the last item is fifty clicks away.
Frequently asked questions
Does Google still use rel="next" and rel="prev"?
No. Google states in its documentation that it no longer uses the rel="next" and rel="prev" tags, while noting that other search engines may still use them. Leaving them in place causes no problem. What matters to Google is that each page in the series has a unique URL and that the pages are connected to each other by real HTML links with an href attribute.
Should page 1 be the canonical of every paginated page?
No. Google advises against using the first page of a paginated series as the canonical of the following ones. Each page must have its own self-referencing canonical: /blog/?page=2 declares /blog/?page=2. Otherwise, products or posts that only appear from page 2 onwards risk losing their discovery path through crawling, and the pages concerned may be ignored.
Is infinite scroll bad for SEO?
Not in itself, but it becomes a problem when there are no underlying pages. Googlebot does not scroll the page and does not click buttons: it follows href links. Search-friendly infinite scroll relies on classic pagination, with directly accessible ?page=n URLs, links in the HTML and a URL that updates during scrolling through the History API.
Should paginated pages be set to noindex?
Generally not. Page 2 onwards serves to get the items in the list discovered, and Google accepts that they share the same title and description. Setting them to noindex can weaken that discovery in the long run. Keep noindex for sorting or filter variants, and leave simple pagination indexable with a self-referencing canonical on each page.
Resources
- Google Search Central: Pagination, incremental page loading, and their impact on Google Searchdevelopers.google.com
- Google Search Central: Infinite scroll search-friendly recommendationsdevelopers.google.com
- Google Search Central: Understand JavaScript SEO basicsdevelopers.google.com
- MDN: History.pushState()developer.mozilla.org
- Shopify: paginate objectshopify.dev
- Laravel: paginationlaravel.com
- Next.js: searchParams and notFoundnextjs.org
Updated on
Topic checklist (PDF)