We wrote this as independent editorial coverage using Google Search Central and the WordPress Code Reference. Search behavior can change. Check the latest documentation and your own Search Console data when you implement a change.
Use a canonical tag to tell search engines which URL you’d like them to show when several addresses serve the same or nearly the same page. Google can choose a different URL. Look for conflicting signals in the content, links, redirects, sitemap, HTTPS setup or hreflang.
Keep duplicates with a canonical tag, move retired URLs with a redirect, and use noindex to keep a page out of search
Start by asking whether visitors still need the URL. A canonical tag names the preferred URL while letting people keep using the duplicates. Use redirects for moves and noindex for pages you want out of search.
| What to put in your code | <link rel="canonical" href="CANONICAL_URL"> |
|---|---|
| What it’s for | Name the preferred URL among duplicates or very similar pages so search signals and reporting can come together. |
| Where it goes | In the <head> of the HTML document. Use an HTTP header for a PDF or another non-HTML file. |
| How to write the URL | Use the full address, including https://, so the target is clear. |
| How Google interprets it | Google treats it as a strong signal and can select another URL. |
| Where to check | Look in the HTML source, the HTTP response and URL Inspection in Search Console. |
| When we checked the documentation | November 5, 2026 |
A canonical tag names the preferred version of a page
“Canonical” means the standard version. When several addresses open the same or nearly the same content, the tag lets you tell search engines which URL you prefer.
In HTML, a canonical tag is a <link> element. Mark the duplicates and add a self-referencing canonical tag on the preferred page itself. That makes your choice clear when parameters or unexpected URL variants appear.
Several addresses lead to the same content
- URLs with UTM tracking parameters
- Sorting and filtering URLs
- Print and share links
- Some product variants
- URLs that vary by session ID or display option
The URL serves a different purpose
- A move that takes the old address out of use
- An admin page you want to keep out of search results
- A page with substantially different content or search intent
- Private content that needs access controls
- An address for a missing or deleted page
Duplicate URLs are common
Store parameters and device-specific URLs can create duplicates during ordinary site operation. The challenge is helping search engines and your team decide which URL represents the page. Canonical tags and related settings make it easier to group crawling, search signals and reports around one URL.
Which tool fits your goal?
Ask what should happen to the old address. Should it stay usable or send people elsewhere? Do you want to keep it out of search results or control whether crawlers can fetch it?
| Option | What it does | What visitors see | When it helps | What to check |
|---|---|---|---|---|
| rel="canonical" | Strong hint Names the URL you prefer |
Visitors stay on the original address. | You want to keep similar pages available. | Google may select another URL. |
| 301 / 308 | A permanent move Sends the old address to the new one |
Visitors automatically reach the new URL. | You’re changing addresses, merging pages or moving a site. | Redirect straight to the final URL to prevent chains and loops. |
| noindex | Exclusion from search Keeps the page out of search results |
Visitors can still see the page. | The page has little value in search, such as a completion screen or an internal search page. | Let Google crawl the page so it can read noindex. |
| robots.txt | Rules for crawlers Tells crawlers which paths they can fetch |
Visitors can still open the URL. | You want to reduce unnecessary crawling. | Use a canonical for duplicates and noindex for a reliable way to keep a public page out of search. |
| XML sitemap | Weaker signal Helps crawlers find the preferred URLs |
Visitors see the same page. | You want to give search engines a list of canonical addresses. | List the same URLs you use for canonical tags and links. |
Ask whether people still need the old URL
You’re retiring the old page and want to guide visitors to its replacement
Use a 301 or 308 to send people to the new address. A canonical is for choosing the preferred copy of a page.
The URL stays live and shows the same or nearly the same page
Set a canonical and use the preferred URL in internal links, the sitemap and hreflang too.
Visitors still need the page, but it should stay out of search
Consider noindex and let search engines crawl the page so they can read it.
The page has different content and serves a different search need
In most cases, point the canonical to that page itself. Save cross-page canonicals for genuinely similar content.
How to write a canonical tag with examples
Put one link element in the <head>. Set it to the full HTTPS address of the published canonical page.
Point the preferred page to its own URL
<head>
<link
rel="canonical"
href="https://example.com/products/shoes/"
>
</head>
Point a duplicate at the preferred URL
https://example.com/products/shoes/?utm_source=newsletter is a tracking URL. If it shows the same content, point its canonical tag to the address without the tracking parameter.
<!-- In the head for /products/shoes/?utm_source=newsletter -->
<link
rel="canonical"
href="https://example.com/products/shoes/"
>
Set the canonical for a PDF with an HTTP Link header
For files without an HTML <head>, including PDFs and other downloads, use the HTTP response Link header to specify the canonical URL.
Link: <https://example.com/guides/canonical/>; rel="canonical"
Six checks before you add the tag
Put a single tag in the head
Google may skip a canonical in the body. Check that the CMS, theme and SEO plugin aren’t each adding their own tag.
Write the whole address
Include the scheme, hostname and path. Follow the same rules for HTTPS, www and trailing slashes everywhere.
Choose a final URL that returns 200
Use a page that visitors and crawlers can reach directly, without signing in. Check that it returns 200, contains the expected content and permits indexing.
Group pages with the same or almost the same content
Google is less likely to adopt your choice if the pages serve different search needs or cover different subjects.
Use a self-referencing tag by default
On an indexable page, point the canonical to its own preferred URL.
Keep the canonical stable when JavaScript runs
Put the tag directly in the server’s HTML when possible. Check that the rendered page still points to the same URL.
https://example.com/page/#section, the #section part points within the page. Leave it out of the canonical URL.How Google chooses a canonical URL
Google weighs a number of signals. Its documentation lists redirects and rel="canonical" as strong signals. A URL in the sitemap is a weaker signal.
Permanent redirect
Send each retired address straight to its replacement so visitors and crawlers both reach it.
rel="canonical"
Give Google the preferred address while keeping the page available. Google can still choose a different version.
XML sitemap
List the preferred pages to help Google find them. Use canonical tags or redirects to reinforce that choice where needed.
Point each signal at the same URL
- Link to the standard address without tracking parameters.
- List only canonical addresses in the XML sitemap.
- Use HTTPS after you’ve completed the move to HTTPS.
- Redirect straight to the URL named in the canonical.
- Keep each language version’s canonical and hreflang in agreement.
- Use the preferred address in Open Graph tags, structured data, breadcrumbs and shared links.
What a canonical tag can help with
- Bring search signals for duplicate URLs together.
- Suggest the address you want people to see in search results.
- Make it easier to read reports in Search Console.
- Cut down crawling of duplicate addresses so important pages get more attention.
- Which address Google ultimately shows
- Whether rankings improve
- How well the page serves readers
- How soon crawling and indexing reflect the change
Choosing canonicals in common situations
Decide what each page offers people and whether it deserves to show up in search. Pay particular attention to store pages, pagination and language variants, where one rule can affect many URLs.
URLs with UTM tracking
?utm_source= can leave the page content unchanged. In that case, set the canonical to the address without the parameters and use it in your own links when possible.
Sort by price or date added
If the same products are simply in a different order, you can choose the main category URL as canonical. Give a sorted view its own policy if it serves a distinct search need.
Color, size and brand filters
If there are endless combinations and no demand for them in search, review crawl rules and internal links as well as canonical tags. A popular filtered view may deserve its own page.
Different colors or capacities
Use the main product address when the differences are small and one page serves customers well. If pictures, price, stock or search intent differ, consider a distinct URL with a self-referencing canonical.
Paginated lists
Give each page in the series its own canonical. /category/?page=2 should point to its own URL.
Pages in Japanese, English and Chinese
In most cases, use a self-referencing canonical for each language and connect equivalent pages with reciprocal hreflang. Pointing a Japanese page’s canonical to the English page can take the Japanese version out of search.
An HTML article and a PDF copy
To make the HTML article the main version, point the PDF’s HTTP Link header at it. If the PDF should appear on its own in search, treat it as a separate resource.
From one domain to another
If the old address can be retired, send it to its matching new URL with a direct 301 or 308. Set a self-referencing canonical on the new page, then update links and the sitemap.
How to check a canonical tag in WordPress
WordPress can output a canonical on individual posts and pages. A theme or SEO plugin can add one too. Check which part of your setup generates the tag so you can keep just one.
Start by counting the tags in the HTML source
Open the page you want to check
Try a post, a page, a category, a tag and a custom post in your browser.
Choose View Page Source
Start with the HTML the server returned. In View Page Source, look for rel="canonical".
Check the address and how many tags there are
Look for one tag per page. Make sure the HTTPS scheme, domain, trailing slash and path match the preferred URL.
Turn off the extra tags
Let one theme, SEO plugin or piece of custom code generate the canonical. Disable the duplicate outputs.
What to check if you use an SEO plugin
- Keep the automatically generated self-referencing canonical on a regular post unless you have a reason to change it.
- Apply your site’s policy to categories, tags, authors and date archives.
- Review custom post types and custom taxonomies too.
- Look for addresses left over from staging or an old domain.
- Check that HTTPS, www and trailing slashes follow your WordPress settings.
- With a multilingual plugin, open the pages and check canonical tags alongside hreflang.
How to verify your canonical setup
Check the URL you declared and the one Google picked. A correct-looking tag can still be outweighed by what the content and links tell Google.
1. Look in the HTML source
Choose View Page Source in your browser and search for rel="canonical". Look for a single tag inside the head. Check the original HTML along with what the browser shows after JavaScript runs.
2. Read the HTTP response with curl
# Look for the canonical tag in the original HTML
curl -sL "https://example.com/page/" | grep -i 'rel="canonical"'
# Inspect the HTTP status, any redirects and the Link header
curl -sIL "https://example.com/file.pdf"
3. Open URL Inspection in Search Console
In the indexed result, compare “User-declared canonical” and “Google-selected canonical.” If they differ, use these checks to make your signals agree.
| What to inspect | What to aim for | Where to look if there’s a mismatch |
|---|---|---|
| What the pages contain | The content matches or is nearly the same as the canonical page. | Compare the title, text, main image, structured data and what readers are trying to find. |
| HTTP response | The preferred URL opens directly and returns 200. | Look for a redirect, a 404, a 5xx error, a login requirement or a soft 404. |
| Links within your site | Your site consistently links to the canonical address. | Check navigation, breadcrumbs, related articles and language links. |
| Sitemap entries | The sitemap lists only canonical URLs. | Remove duplicate and retired addresses from the sitemap. |
| Indexing rules | The preferred URL can be indexed. | Check noindex, robots.txt and any X-Robots-Tag headers. |
| Languages and regions | Canonical tags and hreflang agree. | Check self-references, return links and language codes. |
4. Give Google time to crawl and assess the changes
After you update links and the sitemap, give Google time to recrawl and review the group of pages. You can request indexing for important URLs in URL Inspection. One request per key page is enough to get started.
Common canonical mistakes and how to fix them
The tag ended up in the body
Move it into the head. Check closing tags and invalid markup in your template.
The page has several canonical tags
Check the CMS, theme, plugins and HTTP headers. Choose one place to declare the preferred URL.
The target returns 404, uses noindex or redirects
Point it straight to a page that returns 200 and can be indexed.
The canonical points to different content
If the page serves its own search intent, give it a self-referencing canonical and improve the content on that page.
Links or the sitemap point somewhere else
Send redirects, canonical tags, links and sitemap entries to the same preferred URL.
robots.txt keeps Google from crawling the duplicate
Let Google fetch the page so it can read the canonical or noindex rule. Use crawlable pages when your goal is canonicalization.
Every page in a list points to page one
Each page shows different items. Give later pages their own self-referencing canonicals.
JavaScript replaces the canonical with another URL
Set the canonical in the server template and keep the URL the same after rendering.
All language versions point to one language
Give each translated page its own canonical. Use hreflang to connect the equivalents.
Every URL with a query string uses noindex
That can remove useful filtered pages from search. Decide what each parameter means before you choose an indexing rule.
Common questions about canonical tags
Does Google always show the URL I set as canonical?
Google may choose a different URL. The tag is a strong hint and Google checks the content, redirects, links, sitemap and HTTPS setup before making its choice.
Should every page point its canonical back to itself?
Google treats this as optional. On pages you want indexed, a self-referencing tag makes your preference clear if people find the page through a variant address or a parameter.
Can a page have both a canonical tag and noindex?
Usually, pick the one that serves your goal. Use a canonical to name the preferred page in a group, or use noindex to keep the current page out of search. Together, those signals can conflict.
Can I put a relative URL in the tag?
Google can sometimes resolve a relative URL. It recommends using the full address. Include https:// and the public hostname to avoid accidentally pointing to staging or using the wrong base URL.
Can my canonical point to a URL that returns a 301?
Point directly to the final address that returns 200. That gives Google a clear signal and saves a redundant hop.
Should page two of a list point its canonical to page one?
Give every page its own canonical. Page two has different products or articles, so it points to page two. Do the same for page three and later pages.
What can I do if Google chooses a different canonical?
Check the content, HTTP status, links, sitemap, redirects, noindex and hreflang. Fix what conflicts with your preferred address, then give Google time to crawl again and recheck it in URL Inspection.
Can canonical tags help with crawl budget?
They can tell Google which duplicate represents a page. For a filter that can generate endless addresses, also review URL design, links, how parameters are created and robots.txt rules.
Official sources we used
We checked these primary sources on November 5, 2026.
- Google Search Central’s guide to consolidating duplicate URLs
- Google Search Central’s explanation of canonicalization
- Google Search Central’s guide to fixing canonicalization issues
- Google Search Central’s guide to using noindex
- Google Search Central’s pagination guide
- WordPress Developer Resources: rel_canonical()
Make the preferred URL consistent across your site
Use a canonical when duplicate or very similar pages still need to be available. Use a permanent redirect when you retire an old address, and noindex when a page should stay out of search.
- Give a page its own canonical if you want it indexed.
- Put one tag in the head with the full HTTPS address.
- Point it at a final URL that returns 200 and can be indexed.
- Use the same preferred URL in links, sitemaps, redirects and hreflang where they refer to that version.
- Give paginated pages and each language version their own canonicals.
- In Search Console, compare your declared canonical with Google’s choice.
Start with a list of duplicate addresses. Decide which to keep, which to retire, which to keep out of search and which are worth developing as separate pages. Then add canonical tags where they fit.