Canonical URLs are the main versions of pages that hunt engines scale and rank successful hunt results erstwhile aggregate URLs load the aforesaid aliases very akin content.
Having the due canonical URL strengthens the ranking imaginable for the page you want users to find.
This guideline explains really canonicalization works, really to usage canonical tags correctly, erstwhile to take alternatives to canonical tags, and really to guarantee Google consistently selects your preferred URLs.
What Is a Canonical URL?
A canonical URL is the preferred type of a webpage that hunt engines scale and show successful hunt results erstwhile aggregate URLs lead to the aforesaid aliases very akin content.
For example, some of these URLs whitethorn show the aforesaid blog page:
- Canonical URL: https://example.com/blog/
- Duplicate URL: https://example.com/blog/?page=1
You tin guideline Google’s prime by utilizing canonical tags and different signals. If those signals conflict aliases Google believes a different type amended serves users, it whitethorn still prime a different canonical URL than the 1 you declared.
How Canonicalization Works
Canonicalization useful by selecting 1 canonical URL to usage for indexing and ranking from a group of copy aliases near-duplicate URLs.
There are respective signals you tin trust connected to bespeak to Google which URL you for illustration arsenic the canonical (just beryllium alert Google tin still take a different page arsenic the canonical version):
- Protocol (HTTPS vs. HTTP)
- Use of redirects
- rel="canonical" tags
- Which URLs are included successful the sitemap
Duplicate URLs mightiness still beryllium crawled, but they seldom look successful hunt results unless a circumstantial context—such arsenic instrumentality type aliases region—makes them much relevant.
Common Scenarios That Create Duplicate URLs
Many sites make duplicate URLs unintentionally, often done these communal causes:
- Protocol variants: HTTP and HTTPS versions of the aforesaid page
- Domain variants: www and non-www versions of the aforesaid page
- Trailing slash differences: Versions of the aforesaid page pinch and without a last slash (e.g., /page vs. /page/)
- URL parameters: Tracking, sorting, aliases filtering parameters (e.g. ?utm_source=email, ?sort=price)
- Session IDs: Temporary identifiers added during personification sessions
- Device-specific URLs: Separate mobile URLs for illustration m.example.com and example.com
- Pagination: Content is divided crossed different pages but each page is highly similar(e.g. /blog vs. /blog?page=1)
Understanding which scenarios use to your tract makes it easier to use canonicalization correctly.
What Is a Canonical Tag?
A canonical tag is an HTML element that tells hunt engines which URL is your preferred type for ranking erstwhile aggregate pages incorporate the aforesaid aliases very akin content.
Search engines usage canonical tags arsenic 1 of a fistful of signals to determine which page to scale and show successful hunt results.
The canonical tag belongs successful the <head> conception of your HTML and looks for illustration this:
<link rel="canonical" href="https://example.com/preferred-url-here/" />

How Canonical Tags Work
Canonical tags activity by intelligibly identifying the type of a page you want to rank erstwhile duplicates exist.
If example.com/product/blue?sort=price is simply a copy and shows the aforesaid contented arsenic example.com/products/blue, you'd spot this tag pointing to the main URL successful the caput conception of the copy URL arsenic good arsenic successful the caput conception of the main URL:
html<link rel="canonical" href="https://example.com/products/blue" />
This tells hunt engines to dainty the non-filtered URL arsenic the canonical type and consolidate each ranking signals to that page.

What Self-Referencing Canonical Tags Are
A self-referencing canonical tag is simply a canonical tag that points to the main page’s ain URL.
Every canonical page should see a self-referencing canonical tag—even if it has nary evident duplicates.

Google's John Mueller has confirmed that self-referencing canonicals explain your preferred URLs. These tags make canonicalization much predictable, particularly erstwhile different signals (redirects, protocol, and inclusion successful sitemaps) don’t each align.
Why Use Canonical Tags?
Using canonical tags is 1 of the clearest ways to show hunt engines which type of copy aliases akin pages you want to beryllium indexed and ranked.
When you usage canonical tags, it allows you to influence:
- Which URL appears successful hunt results: Google uses canonical tags arsenic a awesome of which URL to show successful hunt results. This keeps alternates retired of hunt results and prevents keyword cannibalization (i.e., erstwhile aggregate pages compete for the aforesaid position and harm each other’s rankings).
- How nexus equity is consolidated: Canonical tags thief nonstop each nexus equity to your preferred page version, moreover erstwhile you person backlinks that constituent to alternate versions

- Simplify analytics and reporting: Canonical tags tin consolidate information to a azygous URL, giving you cleaner capacity metrics and clearer attribution for campaigns, keywords, and conversions
- Reduce wasted crawl budget: Canonical tags thief Google prioritize important URLs and trim redundant crawling. This is particularly useful for ample sites pinch galore pages.
How to Implement Canonical Tags
The astir communal measurement to instrumentality canonical tags is by adding a rel="canonical" link element to the <head> conception of your HTML. This tag identifies the preferred type of a page erstwhile duplicates exist:
<link rel="canonical" href="https://example.com/preferred-url-here/" />
Most CMS platforms let you to group canonical tags without rubbing code. Below is really canonicalization useful connected awesome platforms.
Magento 2
Magento 2 supports automatic canonical tags for some merchandise and class pages erstwhile enabled successful your configuration settings.
Log successful to your admin panel, past spell to "Stores" > "Settings" > "Configuration."
Open "Catalog" > "Catalog" and spell to the "Search Engine Optimization" section.

Set "Use Canonical Meta Tags For Categories" to "Yes." Magento will automatically adhd canonical tags to alternate class pages.
Also group "Use Canonical Meta Tags For Products" to "Yes." Magento will automatically adhd canonical tags to alternate merchandise pages.
Shopify
Shopify automatically adds canonical tags to merchandise pages, collections, and blog posts.
Most stores won’t request civilization changes, but you tin adhd your ain canonical tags if your shop is much complex.
Adding Canonical Tags Manually
If you request a civilization canonical structure, spell to your Shopify admin, and navigate to “Online Store” > “Themes."
Select the 3 dots and click "Edit Code."

In the near sidebar, click the record you want to edit. For site-wide changes, take "theme.liquid."

Add aliases modify the canonical tag utilizing Shopify’s metafields. This whitethorn require developer support.
Adding Canonical Tags Using Apps
Apps for illustration Canonical Tag URL Wizard fto you group canonicals without editing taxable code.
Install the app, entree it from your Shopify admin, and usage the app to group civilization canonical tags.
WordPress
WordPress requires a WordPress plugin to negociate canonical tags. Let’s spell complete 2 options:
Yoast SEO Plugin
If you're utilizing the Yoast SEO plugin, unfastened immoderate page aliases station successful the editor, spell to the Yoast SEO panel, and unfastened the "Advanced" tab.
Enter the preferred URL successful the "Canonical URL" field.

Yoast automatically adds a self-referencing canonical erstwhile the section is near blank.
Rank Math SEO Plugin
If you're utilizing the Rank Math SEO plugin, unfastened immoderate page aliases post, spell to the "Rank Math SEO" box, and unfastened the "Advanced" tab.
Enter the canonical URL successful the "Canonical URL" field.

Rank Math besides generates a self-referencing canonical by default.
Wix
Wix automatically adds self-referencing canonical tags crossed your site. You tin override them for circumstantial page types aliases individual pages.
Adjusting Canonical Tags successful Global Settings
Go to "Site & Mobile App" > "Website & SEO" > "SEO & GEO."

Scroll down to "Tools & Settings" and prime "Go to SEO Settings."

Choose the page type (e.g., "Main Pages") you want to set the canonical tags for.

Select the “Customize defaults” tab and click "Edit" adjacent to "Additional Meta Tags."

Add aliases set canonical variables utilizing "+ Add Variable."

Adjusting Canonical Tags connected Individual Pages
To set canonical tags for individual pages, unfastened the editor, spell to "Pages & Menu" > "Store Pages."
Select a page, click the three-dot icon, and take "SEO Basics."

Go to "Advanced SEO" > "Additional Tags" and adhd aliases modify the canonical tag.

Other Ways to Specify Canonical URLs for SEO
Canonical tags are the astir communal measurement to state a preferred URL, but you tin besides usage redirects, HTTP headers, sitemaps, and cross-domain configurations to awesome which type of a page should beryllium indexed.
Let’s quickly screen the different canonicalization methods and erstwhile to usage each:
| Method | When to Use | Limitations |
| rel="canonical" tag | You person copy URLs but request to support the duplicates | Doesn’t activity for non-HTML files |
| Redirect | You’re retiring aged URLs aliases consolidating domains | Both versions won’t beryllium accessible |
| rel="canonical" HTTP header | You person non-HTML files aliases can’t modify HTML | Require server entree and is much technical |
| Sitemap | You want to support different canonicalization signals | Not capable arsenic a standalone method |
Using Redirects
Redirects nonstop Google and users from 1 page to different and are bully for deduplication erstwhile you don’t request to support alternate versions of a page but don’t want to delete the URLs altogether.
For example, erstwhile you person HTTP and HTTPS versions of the aforesaid page.
Google prefers HTTPS versions, which intends redirecting the HTTP type to the HTTPS 1 tin amended your SEO.
Google recommends utilizing 3xx redirects (server-side redirects) for the quickest results.
An illustration is the 301 redirect. Learn much astir 301 redirects successful our 301 redirect guide.
Using rel="canonical" HTTP Headers
Use a rel="canonical" HTTP header to specify the canonical URL for non-HTML documents.
For example, if you person DOCX and PDF versions of the aforesaid archive online, utilizing the rel="canonical" HTTP header lets you bespeak your preferred version. However, you must beryllium capable to modify your server’s configuration to do this.
In the .htaccess file, specify the canonical URL by adding the pursuing codification (adjusted for your chosen document):
Header add Link: <https://www.example.com/downloads/filename.pdf>; rel="canonical"
Using Sitemaps
Submit only canonical URLs (non-duplicated pages) successful your sitemap and exclude alternate URLs to bespeak your suggested canonical URLs
Leave alternate versions retired of your sitemap, which tin see pages like:
- Parameterized URLs
- Paginated contented (/page/2, /page/3)
- HTTP versions if HTTPS is canonical
Canonical Tag Best Practices
Canonical tags activity champion erstwhile they’re implemented correctly and are aligned pinch your different tract signals. So, travel these guidelines for the champion results:
Use Self-Referencing Canonical Tags
Every page should see a canonical tag that points to its ain URL, moreover erstwhile nary duplicates exist.
For example, if https://example.com/blog/ is your canonical page, see this successful its <head> section:
<link rel="canonical" href="https://example.com/blog/" />
Specify One Canonical URL Per Page
Specify only 1 canonical URL per page to debar confusing Google.
Multiple canonical tags—or a operation of HTML and HTTP-header canonicals—create conflicting signals that Google whitethorn disregard.
Accidental plagiarism is communal erstwhile canonicals group via your CMS settings overlap pinch manually added ones. So, audit your pages and plug-ins to guarantee only 1 canonical is generated.
Specify the Correct Protocol
If your tract uses HTTPS, each canonical URLs must besides usage HTTPS.
Correct:
<link rel="canonical" href="https://example.com/blog/" />
Incorrect:
<link rel="canonical" href="http://example.com/blog/" />
HTTPS is mostly best, truthful cheque retired our guideline to study much astir redirecting from HTTP to HTTPS.
Specify Whether to Use Trailing Slash URLs
Ensure accordant usage of trailing slashes (i.e., “/” astatine the extremity of URLs) connected your pages and reference your canonical URL correctly by including the trailing slash if needed.
Otherwise, Google could dainty the beneath URLs arsenic abstracted pages:
- Trailing slash: https://example.com/
- Non-trailing slash: https://example.com
Specify Non-WWW aliases WWW URLs
Search engines dainty www and non-www domains arsenic separate, truthful your canonical tags should ever reference one.
If you don’t consistently instrumentality pinch non-WWW aliases WWW, these URLs tin beryllium seen arsenic duplicates:
- WWW URL: https://www.example.com/
- Non-WWW URL: https://example.com/
Use Absolute URLs
Canonical tags should ever see the afloat URL, including protocol and domain, to destruct ambiguity.
Correct (absolute URL):
html<link rel="canonical" href="https://example.com/blog/" />
Incorrect (relative URL):
html<link rel="canonical" href="/blog/" />
Common Mistakes to Avoid When Implementing Canonical Tags
The astir communal canonical URL tag issues see pointing to redirected pages, utilizing canonical tags for non-duplicate pages, placing tags successful the incorrect places, and sending mixed signals—and these summation the likelihood that Google will take a different canonical URL than the 1 you intended.
Pointing Canonical Tags to Redirected Pages
A canonical tag should ne'er constituent to a URL that instantly redirects because it creates conflicting signals.
If page A redirects to page B, each canonical tags should constituent straight to page B. Pointing to page A tells Google “this page is preferred,” while the redirect says “this page is gone.” Since those contradict 1 another, Google will determine connected its own.
Using Canonical Tags for Non-Duplicate Content
Canonical tags should only beryllium utilized erstwhile 2 URLs incorporate the aforesaid aliases highly akin content—not to consolidate authority crossed unrelated aliases loosely related pages.
If the contented isn’t a existent duplicate, a canonical tag sends the incorrect message. Google is highly apt to disregard these canonicals.
Even akin items—like 2 models of headphones—should person their ain self-referencing canonical tags, truthful each merchandise remains eligible to rank.
Placing Canonical Tags successful the Wrong Place
Canonical tags must look wrong the <head> conception of the page’s HTML.
If the canonical tag is added anyplace different than the <head> section, hunt engines whitethorn not admit it.
To verify placement, spell to immoderate page's URL, right-click, and prime "View page source."

Then property Command + F (Mac) aliases Ctrl + F (PC) and hunt for "canonical." And guarantee the tag appears betwixt <head> and </head>.

If it appears anyplace other successful the HTML, you'll request to move it to the <head> section. You whitethorn request to activity pinch a developer to do this.
Conflicting Canonical and Hreflang Tags
Multilingual sites often usage some canonical tags and hreflang tags (HTML that specifies a page’s connection and sometimes its location), which tin beryllium confusing to hunt engines.
- Canonical tags show hunt engines which page type is preferred
- Hreflang tags show hunt engines which connection a page uses to guarantee the correct type is shown to users successful different countries

Suppose you person a page astir the aforesaid topics successful 3 languages:
- English: https://example.com/topic
- Spanish: https://example.com/es/tema
- French: https://example.com/fr/sujet
A communal correction is listing “https://example.com/topic” arsenic the canonical URL connected each page. That sends conflicting messages to Google and could consequence successful the incorrect connection type being shown to users successful a fixed country.
To instrumentality some tags correctly, each page should state itself arsenic the main type successful its connection and database each disposable connection versions, including itself.
On the English page, use:
<link rel="canonical" href="https://example.com/topic" />
<link rel="alternate" hreflang="en" href="https://example.com/topic" />
<link rel="alternate" hreflang="es" href="https://example.com/es/tema" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/sujet" />
On the Spanish page, use:
<link rel="canonical" href="https://example.com/es/tema" />
<link rel="alternate" hreflang="en" href="https://example.com/topic" />
<link rel="alternate" hreflang="es" href="https://example.com/es/tema" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/sujet" />
On the French page, use:
<link rel="canonical" href="https://example.com/fr/sujet" />
<link rel="alternate" hreflang="en" href="https://example.com/topic" />
<link rel="alternate" hreflang="es" href="https://example.com/es/tema" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/sujet" />
How to Audit Canonical Tags connected Your Site
To audit your canonical tags, you tin usage Google Search Console (GSC) and Semrush’s Site Audit tool.
How to Check Canonical URLs pinch Google Search Console
Google Search Console’s URL Inspection instrumentality shows you whether Google chose the aforesaid canonical URL you declared.
Here’s really to cheque immoderate page’s specified canonical:
- Open Google Search Console
- Enter the URL you want to inspect into the hunt bar
- Open the "Page indexing" section
- Look for "Google-selected canonical"

Compare the "Google-selected canonical" to the "User-declared canonical" to make judge they match. If the results differ, Google chose a different canonical.
If Google selects a different canonical than the 1 you prefer, reappraisal each signals—canonical tags, redirects, etc.—to guarantee they consistently constituent to the aforesaid URL.
How to Check Canonical Tags pinch Site Audit
Semrush’s Site Audit identifies canonical problems crossed your full site, including duplicate contented issues.
Follow the prompts to configure your crawl, tally the audit, spell to the "Issues" tab, and hunt "canonical" to show applicable findings

Look for issues like:
- # pages person copy contented issues
- # pages person aggregate canonical URLs
- # pages pinch a surgery canonical link
- # AMP pages person nary canonical tag

After fixing canonical issues, rerun Site Audit utilizing the cogwheel icon successful the precocious right. And corroborate that the canonical-related errors nary longer look successful the “Issues” tab

Keeping Your Canonical Signals Aligned
Consistent canonicalization signals guarantee authority is consolidated to the correct URLs and make indexing much predictable.
And regular audits thief you drawback canonical issues early, truthful you tin intervene. Get started pinch Site Audit.
FAQs About Canonical URLs
What Is an Example of a Canonical URL?
A communal illustration is erstwhile some of the pursuing URLs load the aforesaid contented but 1 is specified arsenic the main version:
- example.com/product?id=123
- example.com/products/blue-widget
To awesome that example.com/products/blue-widget is the preferred version, you would adhd a this canonical tag to some pages:
<link rel="canonical" href="https://example.com/products/blue-widget" />
How Do I Make a URL Canonical?
You typically make a URL canonical by adding a rel="canonical" tag successful the page’s <head> conception pointing to the preferred version.
Most CMS platforms—including WordPress, Shopify, and Wix—make it easy to specify canonical URLs without editing codification directly.
How Do I Know If My URL Is Canonical?
To cognize if your URL is canonical, usage Google Search Console's URL Inspection tool. If the “Google-selected canonical” matches your declared canonical URL, Google accepted your preference.
Do Canonical Tags Improve Rankings?
Canonical tags don’t straight amended rankings, but they activity pinch different canonical signals to consolidate nexus equity that increases the likelihood of your preferred page ranking.
English (US) ·
Indonesian (ID) ·