How to Fix Pagination Markup with Self-Canonical Pages
Paginated listing pages such as /blog/page/2/ or /shop?page=3 often carry a canonical tag that points back to page 1 or to a slightly different URL. This guide shows you how to find those pages, make each one declare its own exact URL as canonical, and link the series together with plain links that search engines can follow.

Why it matters
A canonical on /blog/page/3/ that points to /blog/ asks Google to treat page 3 as a duplicate of page 1. Google may then drop page 3 and crawl the articles or products linked only from that page less often, so deeper items get discovered and refreshed more slowly. Self-canonical paginated pages keep the full series indexable and pass link signals through to every item in the list.
Search engines and AI crawlers that follow the series see the complete catalogue instead of only the first 10 or 20 entries.
What you need
Step-by-step fix
List every paginated URL on the site
Crawl the site with a tool such as Screaming Frog. Filter the URL column for page= and /page/. These two patterns are the ones that count as paginated:
- Query style:
?page=2or&page=2 - Path style:
/page/2or/page/2/
Export the list together with the Canonical Link Element 1 column so you can see which pages currently fail.
Inspect the canonical on a sample page
Fetch one paginated URL and read the canonical tag in the raw HTML. Compare it character by character with the final URL you land on after any redirects. Protocol, host, trailing slash and query string must all match.
com/blog/page/2/`.
curl -sL -o /dev/null -w '%{url_effective}\n' https://example.com/blog/page/2
curl -sL https://example.com/blog/page/2/ | grep -i 'rel="canonical"'Output a self-referencing canonical on page 2+
Change the template or SEO setting so each paginated page outputs its own absolute URL as the canonical, including the page number. Remove any logic that hard-codes the canonical to the first page of the series. Page 1 keeps its normal canonical, such as /blog/.
<!-- On https://example.com/blog/page/2/ --> <link rel="canonical" href="https://example.com/blog/page/2/"> <!-- On https://example.com/shop?page=3 --> <link rel="canonical" href="https://example.com/shop?page=3">
Build the canonical from the final URL
Generate the canonical from the same normalized URL your server actually serves, so redirects never create a mismatch. In practice:
- Always use
https://and your preferred host, with or withoutwww. - Apply your site's trailing-slash rule consistently.
- Redirect
?page=1and/page/1/with a 301 to the base listing URL so page 1 has only one URL.
<?php
// WordPress theme example: canonical for archive pagination
$paged = max(1, get_query_var('paged'));
$canonical = $paged > 1 ? get_pagenum_link($paged) : get_pagenum_link(1);
echo '<link rel="canonical" href="' . esc_url($canonical) . '">';
?>Link pages with plain crawlable anchors
Make pagination controls real <a href> links to the actual page URLs. Avoid buttons, onclick handlers and # links that load content with JavaScript only. pushState`.
Adding rel="prev" and rel="next" is optional: Google no longer uses them as an indexing signal, but other search engines and browsers can still read them.
<nav aria-label="Pagination"> <a href="https://example.com/blog/" rel="prev">Previous</a> <a href="https://example.com/blog/">1</a> <a href="https://example.com/blog/page/2/" aria-current="page">2</a> <a href="https://example.com/blog/page/3/">3</a> <a href="https://example.com/blog/page/3/" rel="next">Next</a> </nav>
Clear caches and recheck the results
Purge your page cache, CDN cache and any plugin cache. Then crawl the paginated URLs again. Every URL containing page=N or /page/N should now show a canonical identical to its own final URL.
Spot-check several pages with curl to confirm.
for n in 2 3 10; do
url=$(curl -sL -o /dev/null -w '%{url_effective}' "https://example.com/blog/page/$n/")
can=$(curl -sL "$url" | grep -oiE 'rel="canonical" href="[^"]+"' | sed 's/.*href="//;s/"$//')
[ "$url" = "$can" ] && echo "OK $url" || echo "FAIL $url -> $can"
donePlatform-specific notes
WordPress
Yoast SEO and Rank Math both output self-referencing canonicals on /page/2/ archives by default. If a page fails, check three places: a theme or custom snippet that filters `wpseo_canonical` or `rank_math/frontend/canonical`, a hard-coded canonical in header.php, or a page builder adding its own tag. In Rank Math, also review Titles & Meta > Misc Pages; the 'Noindex Paginated Pages' option should normally stay off.
Shopify
Collections and blogs use ?page=2. Current themes that output `{{ canonical_url }}` include the page parameter automatically. Older or custom themes sometimes hard-code `{{ shop.url }}{{ collection.url }}`. Replace that with `<link rel="canonical" href="{{ canonical_url }}">` in layout/theme.liquid (Online Store > Themes > Edit code).
Next.js
In the App Router, set `alternates.canonical` inside `generateMetadata` using the page number from `params` or `searchParams`, for example `/blog/page/${page}` or `/shop?page=${page}`. Do not set a single static canonical in the layout; child routes inherit it, which makes every paginated page point to page 1. Render pagination with `<Link href>` so real anchors appear in the HTML.
Webflow
Webflow Collection List pagination uses parameters like ?a1b2c3_page=2. These don't match the `page=` or `/page/` patterns, so they are not treated as paginated here. If you add a custom canonical under Page Settings > SEO > Canonical URL, don't point paginated views to a different URL.
Cloudflare / CDNs
Transform Rules or Workers that rewrite HTML or strip query strings can remove `?page=` from the URL or change the canonical tag. Check that your cache key includes the `page` query parameter, or every page may be served the cached HTML of page 1, including its canonical.
Check that it worked
✅ How to verify
- Re-run the audit; the check should report that paginated pages are self-canonical.
- Run the curl loop from the last step on several page numbers and confirm every line prints OK.
- Use URL Inspection in Google Search Console on a page 2 URL and confirm 'User-declared canonical' equals the inspected URL.
- In Screaming Frog, the Canonicals > Canonicalised filter should list no URLs containing page= or /page/.
⚠️ Common mistakes
- Pointing every paginated page's canonical to page 1, which tells Google pages 2+ are duplicates and hides the items listed on them.
- Writing a canonical that differs from the final URL in small ways, such as http instead of https, a missing trailing slash, or a dropped ?page= parameter.
- Outputting two canonical tags, one from the theme and one from an SEO plugin, with different values.
- Replacing pagination links with a JavaScript-only 'Load more' button, so crawlers can't reach pages beyond the first.
Is this still an issue on your site? Run a free audit — ZORO checks this and 294 other SEO, AI-visibility, accessibility and security signals, with fixes for your platform.
Check my site freeFAQ
Should paginated pages canonical to page 1?
No. Google recommends that each page in a paginated series uses a self-referencing canonical. Page 2 contains different items from page 1, so pointing it to page 1 is an incorrect duplicate signal.
Does Google still use rel=next and rel=prev?
Google stopped using rel="next" and rel="prev" as an indexing signal in 2019 and discovers pagination through normal links. The attributes are harmless to keep, and some other search engines and browsers may still read them.
Should I noindex page 2 and beyond?
Generally no. Noindexed pages tend to be crawled less over time, and the products or posts linked only from them can be discovered more slowly. Leave them indexable with self-canonicals.
Should I canonicalize to a 'View all' page instead?
Only if a View All page exists, loads quickly and contains every item. In that case, canonicalizing the series to it is acceptable. For most large catalogues or blogs, self-canonical paginated pages are the safer choice.
How to Fix Keyword Cannibalisation Between Your Pages
How to Fix Hreflang Tags: Add Self-References and x-default
How to Fix Missing Business Contact Info (NAP) on Your Site
How to Fix Too Many On-Page Links (Over 150 per Page)
How to Fix Click Depth Greater Than 3 on Your Website
How to Fix Missing Image Width and Height Attributes