Canonical URLs Explained: What They Are, Why They Matter and How to Fix Common Issues
What Is a Canonical URL?
Have you ever noticed that the same webpage can sometimes be accessed through several different URLs?
For example, imagine an online shop selling televisions. A particular television might appear under its main product URL:
Main product URL
https://example.com/televisions/samsung-55-inch/
But the same product could also be accessed through a special offers section:
Alternative URL
https://example.com/offers/samsung-55-inch/
Both URLs might display exactly the same product, including its description, specifications, images and price.
To a visitor, there's nothing particularly unusual about this. However, for search engines such as Google, multiple URLs displaying identical or very similar content can create confusion.
Which URL should Google index? Which should appear in search results? And what happens when other websites link to different versions?
This is where canonical URLs come in.
A canonical URL identifies the preferred version of a webpage when multiple URLs contain identical or substantially similar content.
By identifying a preferred URL, website owners can help search engines understand which version should be indexed and displayed in search results.
Why Are Canonical URLs Important for SEO?
Search engines aim to provide users with relevant, useful results. Displaying multiple copies of essentially the same webpage rarely improves the search experience.
When Google discovers several URLs containing similar content, it generally attempts to select one as the canonical version.
However, Google's choice might not be the version you would prefer.
Correct canonicalisation helps address several important SEO considerations.
1. Preventing Duplicate Content Problems
Duplicate content occurs when identical or substantially similar information appears at multiple URLs.
This doesn't necessarily result in a Google penalty, but it can make it harder for search engines to determine which URL should appear in search results.
The benefit: Canonical tags provide a clear indication of your preferred version.
2. Consolidating Ranking Signals
Imagine that several websites link to different URLs displaying the same product.
Some link to the main product page, while others link to a version containing tracking parameters.
Without clear canonicalisation, ranking signals may be distributed across those different URLs.
The benefit: Canonical tags help search engines consolidate signals, such as links, around the preferred page.
3. Improving Crawl Efficiency
Search engines have limited resources available for crawling websites.
If a website generates thousands of duplicate URLs through filtering, sorting or tracking parameters, search engines may spend time crawling pages that add little new information.
The benefit: Canonicalisation helps search engines recognise duplicate URLs and prioritise important content, although it doesn't automatically prevent duplicate pages from being crawled.
4. Keeping Search Results Consistent
A website owner will generally want visitors to arrive at a clean, permanent URL rather than one containing unnecessary parameters or temporary identifiers.
The benefit: Canonicalisation increases the likelihood that the preferred URL will appear in search results.
What Is a Canonical Tag?
A canonical tag is an HTML element that identifies the preferred URL of a webpage.
It is placed within the <head> section of the HTML document.
Example canonical tag:
<link rel="canonical" href="https://example.com/televisions/samsung-55-inch/" />
This tells search engines that the specified URL is the preferred version of the content.
If the same television appears at several URLs, each duplicate page can contain a canonical tag pointing to the main product URL.
Important: A canonical tag is a signal rather than a command.
Google considers canonical tags alongside other factors, including redirects, internal links, HTTPS preferences and XML sitemaps.
If these signals conflict, Google may select a different canonical URL.
What Causes Duplicate URLs?
Duplicate URLs are extremely common, particularly on ecommerce websites and sites using content management systems.
Some of the most frequent causes include the following.
HTTP and HTTPS Versions
A website may be accessible through both:
HTTP version
http://example.com/page/
HTTPS version
https://example.com/page/
The HTTPS version should normally be preferred, with the HTTP version redirected to it.
WWW and Non-WWW Versions
These addresses can potentially display the same content:
WWW version
https://www.example.com/page/
Non-WWW version
https://example.com/page/
Websites should consistently use their preferred domain format.
URL Parameters
Tracking and sorting parameters frequently generate alternative URLs.
Original URL
https://example.com/products/television/
URL with sorting parameter
https://example.com/products/television/?sort=price
If both URLs contain substantially the same content, the parameterised version may need to reference the main URL as its canonical.
However, filtered pages with meaningfully different content or search intent may require a different approach.
Trailing Slashes
Depending on server configuration, these may be separate URLs:
Without trailing slash
https://example.com/services
With trailing slash
https://example.com/services/
Consistency is important, and redirects are generally appropriate when both addresses should resolve to the same page.
Product Categories
An ecommerce product might appear in multiple categories, producing several URLs for the same product.
Main product URL
https://example.com/televisions/samsung-tv/
Special offers URL
https://example.com/special-offers/samsung-tv/
If these URLs display the same product information, a canonical tag can identify the preferred product URL.
What Is a Self-Referencing Canonical Tag?
A self-referencing canonical tag points to the URL of the page on which it appears.
For example, consider the following page:
https://example.com/about-us/
Its HTML might contain:
<link rel="canonical" href="https://example.com/about-us/" />
This might initially seem unnecessary. After all, why tell Google that a page is its own preferred version?
The reason is consistency.
A self-referencing canonical explicitly communicates which URL you want search engines to consider the primary version.
It can also help when alternative URLs are generated unexpectedly through tracking parameters or other mechanisms.
Although Google doesn't require self-referencing canonical tags on every page, they are generally considered good practice for indexable canonical pages.
Common Canonical URL Problems
Canonical tags are relatively simple, but incorrect implementation can create significant SEO problems.
Here are some of the most common issues to look for.
1. Missing Canonical Tags
A page without a canonical tag leaves Google to determine the preferred URL using other available signals.
This isn't necessarily an error, particularly when the page has no duplicates, but it can make canonicalisation less predictable.
Recommended action: Consider adding a self-referencing canonical tag to important indexable pages.
2. Multiple Canonical Tags
A webpage should normally declare only one canonical URL.
Incorrect example:
<link rel="canonical" href="https://example.com/page-a/" />
<link rel="canonical" href="https://example.com/page-b/" />
These conflicting declarations make the preferred URL ambiguous.
Google may ignore the conflicting canonical information.
Recommended action: Ensure each page has a single, consistent canonical declaration.
3. Canonical URLs That Return Errors
A canonical tag might point to a page that no longer exists.
Example:
<link rel="canonical" href="https://example.com/old-product/" />
If that destination returns a 404 Not Found error, search engines cannot reliably use it as the preferred version.
Recommended action: Update the canonical to point to an appropriate, accessible URL returning HTTP 200.
4. Canonical URLs That Redirect
Consider a page containing this canonical:
<link rel="canonical" href="https://example.com/old-page/" />
But /old-page/ redirects to:
https://example.com/new-page/
This creates unnecessary ambiguity because the canonical tag points to a URL that is no longer the final destination.
Recommended action: Point the canonical directly to the final preferred URL.
5. Canonical Tags Pointing to Unrelated Pages
Canonical tags should be used for duplicate or substantially similar content.
They should not be used simply to direct ranking signals from one unrelated page to another.
For example, a page about washing machines should not normally have a canonical pointing to a page about refrigerators.
Recommended action: Ensure canonical URLs represent genuinely equivalent content.
6. Canonical Tags Using the Wrong Protocol or Domain
A website using HTTPS might accidentally declare HTTP canonical URLs.
Incorrect:
<link rel="canonical" href="http://example.com/page/" />
Correct:
<link rel="canonical" href="https://example.com/page/" />
Similarly, canonical tags might reference the www version of a domain when the website uses non-www URLs.
Recommended action: Ensure canonical tags consistently reference the correct protocol, hostname and URL structure.
7. Canonical Tags Outside the HTML Head
Canonical link elements belong inside the HTML <head> section.
Correct HTML structure:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Example Page</title>
<link rel="canonical" href="https://example.com/page/" />
</head>
<body>
<h1>Example Page</h1>
</body>
</html>
If the canonical tag appears in the body of the document, search engines may not recognise it correctly.
Recommended action: Check the generated HTML and ensure the canonical tag is correctly positioned.
How to Check Canonical URLs on Your Website
There are several ways to inspect canonical tags.
Method 1: Check the HTML Source
Open a webpage in your browser.
Right-click and select View Page Source.
Search for:
rel="canonical"
You should find a declaration similar to:
<link rel="canonical" href="https://example.com/page/" />
Check that the URL is correct and that there are no conflicting declarations.
This approach works well for checking individual pages, but it becomes impractical when auditing an entire website.
Method 2: Use Google Search Console
Google Search Console can show both the canonical URL declared by your website and the URL Google has selected.
Open the URL Inspection tool and inspect the relevant page.
Under the indexing information, look for:
| Field | Meaning |
|---|---|
| User-declared canonical | The preferred URL specified by your website |
| Google-selected canonical | The URL Google has chosen as canonical |
If the two values differ, Google has selected a different canonical from the one you specified.
This doesn't automatically mean something is wrong, but it is worth investigating.
Method 3: Crawl Your Website Using SEO Web Spider
For larger websites, a crawler provides a more practical way to investigate canonicalisation.
SEO Web Spider can be used to crawl website pages and inspect their canonical URL information, helping you identify issues that would be difficult to discover manually.
Rather than opening hundreds of pages individually, you can examine canonical information across your website and investigate pages requiring attention.
This is particularly useful for ecommerce websites, large content-driven sites and websites with complex URL structures.
Canonical Tags vs 301 Redirects: Which Should You Use?
Canonical tags and redirects both help search engines understand URL preferences, but they serve different purposes.
| Feature | Canonical Tag | 301 Redirect |
|---|---|---|
| Automatically redirects visitors | No | Yes |
| Alternative URL remains accessible | Yes | No |
| Indicates preferred URL | Yes | Yes |
| Consolidates ranking signals | Helps consolidate | Helps consolidate |
| Best suited to | Duplicate pages that must remain accessible | Permanently moved or retired URLs |
| Search engine treatment | Strong signal | Strong signal |
Example: When to Use a 301 Redirect
Imagine you've permanently moved a page from:
Old URL
https://example.com/old-service/
To:
New URL
https://example.com/new-service/
A 301 redirect is usually the appropriate solution because the old page no longer needs to remain accessible.
Example: When to Use a Canonical Tag
Imagine a television appearing in two different sections of an online shop.
Main product URL
https://example.com/televisions/samsung-tv/
Alternative product URL
https://example.com/special-offers/samsung-tv/
If both URLs need to remain accessible because of the website's navigation structure, a canonical tag may be more suitable.
The key distinction: Use a redirect when an alternative URL no longer needs to remain accessible. Use a canonical tag when duplicate URLs need to remain available.
Canonical URL Best Practices
When implementing canonical tags, follow these principles:
| Best Practice | Why It Matters |
|---|---|
| Use absolute URLs | Avoids ambiguity about the destination |
| Prefer HTTPS | Keeps canonical references consistent with secure URLs |
| Declare one canonical per page | Prevents conflicting signals |
| Use self-referencing canonicals | Helps establish the preferred URL |
| Avoid redirected canonical destinations | Points search engines directly to the final URL |
| Check destination status codes | Helps identify broken or inaccessible canonicals |
| Keep XML sitemaps consistent | Reinforces preferred URL choices |
| Review internal links | Encourages linking to preferred URLs |
| Configure hreflang correctly | Supports multilingual and regional content |
| Audit regularly | Detects problems introduced by website changes |
A Simple Canonical URL Checklist
Before publishing or updating a webpage, check that:
- The canonical URL points to the intended page.
- The canonical URL uses the correct HTTPS protocol.
- The canonical URL uses the preferred domain.
- The page contains no conflicting canonical tags.
- The canonical destination returns HTTP 200.
- The canonical destination does not redirect.
- The canonical tag is correctly positioned in the HTML head.
- The canonical destination contains identical or substantially similar content.
- Your internal links and XML sitemap support the preferred URL.
Frequently Asked Questions
Do Canonical Tags Improve Google Rankings?
Canonical tags are not a direct ranking boost.
However, they help search engines consolidate ranking signals and select preferred URLs, which can improve the effectiveness of your overall SEO strategy.
Does Every Page Need a Canonical Tag?
Not necessarily.
Google can determine canonical URLs without explicit tags. However, self-referencing canonicals are commonly recommended for important indexable pages.
Can Google Ignore a Canonical Tag?
Yes.
Canonical tags are signals, not directives. Google may select a different URL if other signals suggest that another version is more appropriate.
Can Canonical Tags Point to Another Domain?
Yes.
Cross-domain canonical tags can indicate that content published on one website has its preferred version on another domain.
They should only be used when the content is sufficiently equivalent and the canonical relationship is intentional.
Are Canonical Tags the Same as Noindex Tags?
No. They serve different purposes.
| Canonical Tag | Noindex Tag |
|---|---|
| Identifies the preferred version of duplicate content | Requests that a page be excluded from search results |
| Helps consolidate duplicate URL signals | Controls whether a page is eligible for indexing |
| Alternative URLs may still be crawled | Page can still be crawled |
| Does not guarantee exclusion from search results | Directly instructs search engines not to index the page |
A canonical tag expresses a preference about which URL should represent duplicate content.
A noindex directive tells search engines not to include a page in their index.
They should not be treated as interchangeable.
Conclusion
Canonical URLs are an important part of technical SEO.
Although the underlying concept is straightforward, incorrect canonicalisation can make it harder for search engines to identify your preferred pages, consolidate ranking signals and crawl your website efficiently.
The most important thing is consistency.
Your canonical tags, redirects, internal links and XML sitemap should all support the same preferred URL structure.
Regular website audits can help identify problems before they affect your site's search visibility.
Check Your Website for Canonical URL Issues
Use SEO Web Spider to crawl your website, examine canonical URL information and investigate potential technical SEO problems.
Find and fix issues that could be affecting your website's search engine visibility.