Canonical URLs are the primary variations of pages that serps index and rank in search outcomes when a number of URLs load the identical or very comparable content material.
Having the correct canonical URL strengthens the rating potential for the web page you need customers to seek out.
This information explains how canonicalization works, the best way to use canonical tags appropriately, when to decide on alternate options to canonical tags, and the way to make sure Google constantly selects your most well-liked URLs.
What Is a Canonical URL?
A canonical URL is the popular model of a webpage that serps index and present in search outcomes when a number of URLs result in the identical or very comparable content material.
For instance, each of those URLs could show the identical weblog web page:
- Canonical URL: https://instance.com/weblog/
- Duplicate URL: https://instance.com/weblog/?web page=1
You’ll be able to information Google’s alternative by utilizing canonical tags and different indicators. If these indicators battle or Google believes a unique model higher serves customers, it could nonetheless choose a unique canonical URL than the one you declared.
How Canonicalization Works
Canonicalization works by choosing one canonical URL to make use of for indexing and rating from a set of duplicate or near-duplicate URLs.
There are a number of indicators you possibly can depend on to point to Google which URL you favor because the canonical (simply remember Google can nonetheless select a unique web page because the canonical model):
- Protocol (HTTPS vs. HTTP)
- Use of redirects
- rel=”canonical” tags
- Which URLs are included within the sitemap
Duplicate URLs may nonetheless be crawled, however they hardly ever seem in search outcomes except a selected context—corresponding to machine sort or area—makes them extra related.
Widespread Situations That Create Duplicate URLs
Many websites generate duplicate URLs unintentionally, typically via these widespread causes:
- Protocol variants: HTTP and HTTPS variations of the identical web page
- Area variants: www and non-www variations of the identical web page
- Trailing slash variations: Variations of the identical web page with and and not using a remaining slash (e.g., /web page vs. /web page/)
- URL parameters: Monitoring, sorting, or filtering parameters (e.g. ?utm_source=e-mail, ?kind=value)
- Session IDs: Short-term identifiers added throughout person classes
- Gadget-specific URLs: Separate cellular URLs like m.instance.com and instance.com
- Pagination: Content material is cut up throughout completely different pages however every web page is extremely comparable(e.g. /weblog vs. /weblog?web page=1)
Understanding which eventualities apply to your web site makes it simpler to use canonicalization appropriately.
What Is a Canonical Tag?
A canonical tag is an HTML component that tells serps which URL is your most well-liked model for rating when a number of pages include the identical or very comparable content material.
Search engines like google use canonical tags as one among a handful of indicators to determine which web page to index and present in search outcomes.
The canonical tag belongs within the
part of your HTML and appears like this:

How Canonical Tags Work
Canonical tags work by clearly figuring out the model of a web page you need to rank when duplicates exist.
If instance.com/product/blue?kind=value is a reproduction and reveals the identical content material as instance.com/merchandise/blue, you’d place this tag pointing to the primary URL within the head part of the duplicate URL in addition to within the head part of the primary URL:
html
This tells serps to deal with the non-filtered URL because the canonical model and consolidate all rating indicators to that web page.

What Self-Referencing Canonical Tags Are
A self-referencing canonical tag is a canonical tag that factors to the primary web page’s personal URL.
Each canonical web page ought to embody a self-referencing canonical tag—even when it has no apparent duplicates.

Google’s John Mueller has confirmed that self-referencing canonicals make clear your most well-liked URLs. These tags make canonicalization extra predictable, particularly when different indicators (redirects, protocol, and inclusion in sitemaps) don’t all align.
Why Use Canonical Tags?
Utilizing canonical tags is likely one of the clearest methods to inform serps which model of duplicate or comparable pages you need to be listed and ranked.
Whenever you use canonical tags, it means that you can affect:
- Which URL seems in search outcomes: Google makes use of canonical tags as a sign of which URL to point out in search outcomes. This retains alternates out of search outcomes and prevents key phrase cannibalization (i.e., when a number of pages compete for a similar phrases and hurt one another’s rankings).
- How hyperlink fairness is consolidated: Canonical tags assist direct all hyperlink fairness to your most well-liked web page model, even when you may have backlinks that time to alternate variations

- Simplify analytics and reporting: Canonical tags can consolidate knowledge to a single URL, supplying you with cleaner efficiency metrics and clearer attribution for campaigns, key phrases, and conversions
- Scale back wasted crawl finances: Canonical tags assist Google prioritize vital URLs and cut back redundant crawling. That is particularly helpful for big websites with many pages.
The right way to Implement Canonical Tags
The most typical strategy to implement canonical tags is by including a rel=”canonical” hyperlink component to the
part of your HTML. This tag identifies the popular model of a web page when duplicates exist:
Most CMS platforms will let you set canonical tags with out touching code. Under is how canonicalization works on main platforms.
Magento 2
Magento 2 helps computerized canonical tags for each product and class pages when enabled in your configuration settings.
Log in to your admin panel, then go to “Shops” > “Settings” > “Configuration.”
Open “Catalog” > “Catalog” and go to the “Search Engine Optimization” part.

Set “Use Canonical Meta Tags For Classes” to “Sure.” Magento will routinely add canonical tags to alternate class pages.
Additionally set “Use Canonical Meta Tags For Merchandise” to “Sure.” Magento will routinely add canonical tags to alternate product pages.
Shopify
Shopify routinely provides canonical tags to product pages, collections, and weblog posts.
Most shops received’t want customized adjustments, however you possibly can add your personal canonical tags in case your retailer is extra advanced.
Including Canonical Tags Manually
When you want a customized canonical construction, go to your Shopify admin, and navigate to “On-line Retailer” > “Themes.”
Choose the three dots and click on “Edit Code.”

Within the left sidebar, click on the file you need to edit. For site-wide adjustments, select “theme.liquid.”

Add or modify the canonical tag utilizing Shopify’s metafields. This may increasingly require developer help.
Including Canonical Tags Utilizing Apps
Apps like Canonical Tag URL Wizard allow you to set canonicals with out enhancing theme code.
Set up the app, entry it out of your Shopify admin, and use the app to set customized canonical tags.
WordPress
WordPress requires a WordPress plugin to handle canonical tags. Let’s go over two choices:
Yoast website positioning Plugin
When you’re utilizing the Yoast website positioning plugin, open any web page or put up within the editor, go to the Yoast website positioning panel, and open the “Superior” tab.
Enter the popular URL within the “Canonical URL” area.

Yoast routinely provides a self-referencing canonical when the sector is left clean.
Rank Math website positioning Plugin
When you’re utilizing the Rank Math website positioning plugin, open any web page or put up, go to the “Rank Math website positioning” field, and open the “Superior” tab.
Enter the canonical URL within the “Canonical URL” area.

Rank Math additionally generates a self-referencing canonical by default.
Wix
Wix routinely provides self-referencing canonical tags throughout your web site. You’ll be able to override them for particular web page sorts or particular person pages.
Adjusting Canonical Tags in World Settings
Go to “Website & Cell App” > “Web site & website positioning” > “website positioning & GEO.”

Scroll all the way down to “Instruments & Settings” and choose “Go to website positioning Settings.”

Select the web page sort (e.g., “Principal Pages”) you need to regulate the canonical tags for.

Choose the “Customise defaults” tab and click on “Edit” subsequent to “Further Meta Tags.”

Add or regulate canonical variables utilizing “+ Add Variable.“

Adjusting Canonical Tags on Particular person Pages
To regulate canonical tags for particular person pages, open the editor, go to “Pages & Menu” > “Retailer Pages.”
Choose a web page, click on the three-dot icon, and select “website positioning Fundamentals.”

Go to “Superior website positioning” > “Further Tags” and add or modify the canonical tag.

Different Methods to Specify Canonical URLs for website positioning
Canonical tags are the commonest strategy to declare a most well-liked URL, however you may as well use redirects, HTTP headers, sitemaps, and cross-domain configurations to sign which model of a web page needs to be listed.
Let’s rapidly cowl the completely different canonicalization strategies and when to make use of every:
|
Technique |
When to Use |
Limitations |
|
rel=”canonical” tag |
You will have duplicate URLs however must maintain the duplicates |
Doesn’t work for non-HTML information |
|
Redirect |
You’re retiring previous URLs or consolidating domains |
Each variations received’t be accessible |
|
rel=”canonical” HTTP header |
You will have non-HTML information or can’t modify HTML |
Require server entry and is extra technical |
|
Sitemap |
You need to help different canonicalization indicators |
Not ample as a standalone methodology |
Utilizing Redirects
Redirects ship Google and customers from one web page to a different and are good for deduplication whenever you don’t must maintain alternate variations of a web page however don’t need to delete the URLs altogether.
For instance, when you may have HTTP and HTTPS variations of the identical web page.
Google prefers HTTPS variations, which suggests redirecting the HTTP model to the HTTPS one can enhance your website positioning.
Google recommends utilizing 3xx redirects (server-side redirects) for the quickest outcomes.
An instance is the 301 redirect. Study extra about 301 redirects in our 301 redirect information.
Utilizing rel=”canonical” HTTP Headers
Use a rel=”canonical” HTTP header to specify the canonical URL for non-HTML paperwork.
For instance, you probably have DOCX and PDF variations of the identical doc on-line, utilizing the rel=”canonical” HTTP header allows you to point out your most well-liked model. Nonetheless, you should have the ability to modify your server’s configuration to do that.
Within the .htaccess file, specify the canonical URL by including the next code (adjusted on your chosen doc):
Header add Hyperlink:
Utilizing Sitemaps
Submit solely canonical URLs (non-duplicated pages) in your sitemap and exclude alternate URLs to point your recommended canonical URLs
Depart alternate variations out of your sitemap, which may embody pages like:
- Parameterized URLs
- Paginated content material (/web page/2, /web page/3)
- HTTP variations if HTTPS is canonical
Canonical Tag Finest Practices
Canonical tags work finest after they’re carried out appropriately and are aligned along with your different web site indicators. So, comply with these pointers for the very best outcomes:
Use Self-Referencing Canonical Tags
Each web page ought to embody a canonical tag that factors to its personal URL, even when no duplicates exist.
For instance, if https://instance.com/weblog/ is your canonical web page, embody this in its
part:
Specify One Canonical URL Per Web page
Specify just one canonical URL per web page to keep away from complicated Google.
A number of canonical tags—or a mixture of HTML and HTTP-header canonicals—create conflicting indicators that Google could disregard.
Unintentional duplication is widespread when canonicals set through your CMS settings overlap with manually added ones. So, audit your pages and plug-ins to make sure just one canonical is generated.
Specify the Appropriate Protocol
In case your web site makes use of HTTPS, all canonical URLs should additionally use HTTPS.
Appropriate:
Incorrect:
HTTPS is mostly finest, so take a look at our information to study extra about redirecting from HTTP to HTTPS.
Specify Whether or not to Use Trailing Slash URLs
Guarantee constant use of trailing slashes (i.e., “/” on the finish of URLs) in your pages and reference your canonical URL appropriately by together with the trailing slash if wanted.
In any other case, Google might deal with the under URLs as separate pages:
- Trailing slash: https://instance.com/
- Non-trailing slash: https://instance.com
Specify Non-WWW or WWW URLs
Search engines like google deal with www and non-www domains as separate, so your canonical tags ought to all the time reference one.
When you don’t constantly keep on with non-WWW or WWW, these URLs may be seen as duplicates:
- WWW URL: https://www.instance.com/
- Non-WWW URL: https://instance.com/
Use Absolute URLs
Canonical tags ought to all the time embody the complete URL, together with protocol and area, to get rid of ambiguity.
Appropriate (absolute URL):
html
Incorrect (relative URL):
html
Widespread Errors to Keep away from When Implementing Canonical Tags
The most typical canonical URL tag points embody pointing to redirected pages, utilizing canonical tags for non-duplicate pages, inserting tags within the fallacious locations, and sending combined indicators—and these improve the percentages that Google will select a unique canonical URL than the one you meant.
Pointing Canonical Tags to Redirected Pages
A canonical tag ought to by no means level to a URL that instantly redirects as a result of it creates conflicting indicators.
If web page A redirects to web page B, all canonical tags ought to level on to web page B. Pointing to web page A tells Google “this web page is most well-liked,” whereas the redirect says “this web page is gone.” Since these contradict each other, Google will determine by itself.
Utilizing Canonical Tags for Non-Duplicate Content material
Canonical tags ought to solely be used when two URLs include the identical or extraordinarily comparable content material—to not consolidate authority throughout unrelated or loosely associated pages.
If the content material isn’t a real duplicate, a canonical tag sends the fallacious message. Google is extremely more likely to ignore these canonicals.
Even comparable objects—like two fashions of headphones—ought to have their very own self-referencing canonical tags, so every product stays eligible to rank.
Inserting Canonical Tags within the Flawed Place
Canonical tags should seem contained in the
part of the web page’s HTML.
If the canonical tag is added anyplace apart from the
part, serps could not acknowledge it.
To confirm placement, go to any web page’s URL, right-click, and choose “View web page supply.”

Then press Command + F (Mac) or Ctrl + F (PC) and seek for “canonical.” And make sure the tag seems between
and .

If it seems anyplace else within the HTML, you may want to maneuver it to the
part. You could must work with a developer to do that.
Conflicting Canonical and Hreflang Tags
Multilingual websites typically use each canonical tags and hreflang tags (HTML that specifies a web page’s language and generally its location), which may be complicated to serps.
- Canonical tags inform serps which web page model is most well-liked
- Hreflang tags inform serps which language a web page makes use of to make sure the best model is proven to customers in several nations

Suppose you may have a web page about the identical matters in three languages:
- English: https://instance.com/matter
- Spanish: https://instance.com/es/tema
- French: https://instance.com/fr/sujet
A standard mistake is itemizing “https://instance.com/matter” because the canonical URL on every web page. That sends conflicting messages to Google and will end result within the fallacious language model being proven to customers in a given nation.
To implement each tags appropriately, every web page ought to declare itself as the primary model in its language and listing all out there language variations, together with itself.
On the English web page, use:
On the Spanish web page, use:
On the French web page, use:
The right way to Audit Canonical Tags on Your Website
To audit your canonical tags, you need to use Google Search Console (GSC) and Semrush’s Website Audit device.
The right way to Examine Canonical URLs with Google Search Console
Google Search Console’s URL Inspection device reveals you whether or not Google selected the identical canonical URL you declared.
Right here’s the best way to verify any web page’s specified canonical:
- Open Google Search Console
- Enter the URL you need to examine into the search bar
- Open the “Web page indexing” part
- Search for “Google-selected canonical”

Evaluate the “Google-selected canonical” to the “Person-declared canonical” to ensure they match. If the outcomes differ, Google selected a unique canonical.
If Google selects a unique canonical than the one you favor, evaluation all indicators—canonical tags, redirects, and so on.—to make sure they constantly level to the identical URL.
The right way to Examine Canonical Tags with Website Audit
Semrush’s Website Audit identifies canonical issues throughout your total web site, together with duplicate content material points.
Comply with the prompts to configure your crawl, run the audit, go to the “Points” tab, and search “canonical” to point out related findings

Search for points like:
- # pages have duplicate content material points
- # pages have a number of canonical URLs
- # pages with a damaged canonical hyperlink
- # AMP pages don’t have any canonical tag

After fixing canonical points, rerun Website Audit utilizing the gear icon within the higher proper. And ensure that the canonical-related errors not seem within the “Points” tab

Protecting Your Canonical Indicators Aligned
Constant canonicalization indicators guarantee authority is consolidated to the best URLs and make indexing extra predictable.
And common audits aid you catch canonical points early, so you possibly can intervene. Get began with Website Audit.
FAQs About Canonical URLs
What Is an Instance of a Canonical URL?
A standard instance is when each of the next URLs load the identical content material however one is specified as the primary model:
- instance.com/product?id=123
- instance.com/merchandise/blue-widget
To sign that instance.com/merchandise/blue-widget is the popular model, you’d add a this canonical tag to each pages:
How Do I Make a URL Canonical?
You usually make a URL canonical by including a rel=”canonical” tag within the web page’s
part pointing to the popular model.
Most CMS platforms—together with WordPress, Shopify, and Wix—make it simple to specify canonical URLs with out enhancing code immediately.
How Do I Know If My URL Is Canonical?
To know in case your URL is canonical, use Google Search Console’s URL Inspection device. If the “Google-selected canonical” matches your declared canonical URL, Google accepted your desire.
Do Canonical Tags Enhance Rankings?
Canonical tags don’t immediately enhance rankings, however they work with different canonical indicators to consolidate hyperlink fairness that will increase the percentages of your most well-liked web page rating.









