18 March, 2023
What is a canonical tag? How to use it on your website

The Canonical tag is a familiar concept to SEOs. The canonical URL was created by Google, Microsoft and Yahoo to give site owners a faster, more thorough way to deal with duplicate content. But you may not fully understand What is a canonical tag? What is a canonical link? How do you use the canonical tag? This article from MONA Media will answer these questions.
What is a Canonical tag?
The canonical tag (“rel=canonical”) is an HTML element that tells search engines which URL is the original of a page whose content is duplicated (search engine). Use the canonical link tag when the same or similar content appears on several URLs.
If different URLs carry the same or very similar content, you can use a canonical URL to say which one is the main version, and then get that one indexed.
Canonical tag structure
Here is what each part of a canonical URL means:
- link rel=”canonical”: The link in this tag is the original version of the page.
- href=”https://example.com/sample-page/””: Visit the original here.
What role does the Canonical tag play in SEO?
As a website grows and publishes more content, it often ends up with pages that are similar or duplicate. This causes “duplicate content” (Duplicate Content”, and you may be penalized by the algorithms of penalized by Google.
Duplicate content is a tricky problem. When search engines crawl several URL with the same or similar content, and all of them qualify to be Google index and ranked for a certain keyword, search engines may pick a URL you never wanted to rank. Google canonical is the fix, and it does the following:
- Names the one canonical URL you want users to see in search results.
- Merges URLs that carry duplicate content.
- Makes it simpler to track metrics for a product or service.
- Helps manage content that is distributed across different domains.
Besides optimizing canonical tags, there is a lot more to do to build the credibility of your website and raise the ranking of your articles. Each step is small, but don't skip any of them if you want to build the most SEO web effective strategy possible!
To make your SEO investment deliver more value and keep costs down, choose a trusted SEO Agency provides SEO Services in Ho Chi Minh City provider. One SEO service MONA recommends putting first is full-scope SEO. With this option you can grow brand reach and industry credibility at the same time and reach the top spot in your online market. All you need to do is find a SEO agency that is reputable and experienced to work with.
At MONA Media, we have a team SEO specialists leading and experienced team and a clear working process to get clients the best results. MONA also offers a wide range of marketing solutions and services that go beyond websites and SEO.
Please CONTACT US with MONA via Hotline 1900 636 648 to get detailed advice on top-ranking SEO services and receive the most accurate SEO price list quote.
When should you use rel=Canonical?
Here are the cases where you should use the rel canonical link:
The website has different versions
- https://mona.media/dich-vu-seo-tong-the
- https://m.mona.media/dich-vu-seo-tong-the
- https://amp.mona.media/dich-vu-seo-tong-the
Dynamic URLs for search pages, filters and similar
- https://mona.media/?s=adword
- https://mona.media/?gclid=adword
Blog systems that store multiple URLs when a post sits in several categories
- https://mona.media/kien-thuc-website/website-la-gi/
- https://mona.media/cau-hoi-thuong-gap-ve-webiste/website-la-gi/
Content distributed across multiple domains
- https://mona.media/canonical-la-gi
- https://blogs.mona.media/kien-thuc-seo/canonical-la-gi
Content available in several web variants, http/https or www/non-www
- https://mona.media/seo-la-gi
- https://mona.media/seo-la-gi
Content split into several parts
- https://mona.media/dia-chi-website-la-gi
- https://mona.media/dia-chi-website-la-gi-phan-2
- https://mona.media/dia-chi-website-la-gi-phan-3
Rules for using the Canonical tag
The canonical tag is an important part of SEO Technical, used to identify the official version of a page when several versions with similar or duplicate content exist on different URLs. So what are the rules for using it? Let's go through them with MONA.
Use absolute URLs
Google's John Mueller has said you should not use relative paths in the rel=“canonical” link element.
Example: For the website https://mona.media/, use an absolute URL like this: <link rel=“canonical” href=“https://mona.media/sample-page/” />. Do not use a structure like: <link rel=“canonical” href=”/sample-page/” />.
Use lowercase in URLs
Google may treat URLs with uppercase and lowercase letters as different URLs. So normalize all URLs on your server to lowercase, then use the lowercase URLs in your canonical tags.
Use the right version: HTTPS or HTTP
If your site has moved to SSL, make sure you don't declare any URL that isn't SSL in your canonical tag. In other words, use the right domain version, HTTPS (SSL) or HTTP. In theory this avoids confusion and unwanted results.
If you're on a proper, secure domain, use this structure for HTTPS: <link rel=“canonical” href=“https://mona.media/sample-page/” />.
Do not use a structure like: <link rel=“canonical” href=“https://mona.media/sample-page/” />.
If you don't use HTTPS, the opposite structure is the better fit.
Use a self-referencing canonical tag
John Mueller of Google has said self-referencing canonical tags are the recommended practice, though they aren't required. If you're not sure how a self-referencing canonical works, it's simply a canonical tag on a page that points to the page itself.
Example: If the URL is https://mona.media/sample-page then the self-referencing canonical tag on the page is: <link rel=“canonical” href=“https://mona.media/sample-page” />. Most modern CMS add self-referencing URLs automatically. If you use a custom CMS, though, ask your developer to hard-code it.
Use one canonical tag per page
If a page has more than one canonical tag, Google ignores all of them. In other words, when it meets more than one rel=canonical declaration, Google disregards every rel=canonical hint. So use only one canonical link tag per page.
How to use Canonical to optimize your website
Use the rel=”canonical” tag with the full structure: <link rel=”canonical” href=”https://example.com/” /> and place this link tag inside the <head></head> of the page.
-> You may also want to read:
- How to build a professional website from A to Z for beginners
- A guide to professional and effective website SEO
How to set up the Canonical tag
Set up rel=“canonical” in HTML
The rel=canonical tag is the simplest way to declare the original URL. Just add the following code to the <head> of any duplicate page:
<link rel=”canonical” href=”https://example.com/sample-page/”/>
Example: Say you run a flower shop website and want https://store.com/flower/red-roses/ to be the original URL, even though the same content can also be reached at other URLs, such as https://store.com/red-roses/. Add the canonical tag to every duplicate page like this:
<link rel=”canonical” href=”https://store.com/flower/red-roses/ l”/>
Note: If you use a content management system CMS you don't need to worry much about the page code.
Set up the Canonical tag in WordPress
Just install Yoast SEO and a self-referencing canonical is added to your pages automatically. Choose the “Improve” section on each post or page to add custom settings.
Set up the Canonical tag in the HTTP header
PDF files have no <head> section, so a canonical tag can't be used. In that case, set it in the HTTP header instead. You can also use the HTTP header for other website canonicals.
Set up the Canonical tag in XML sitemaps
For sitemaps, Google says pages without a canonical tag are not included, and only canonical URLs are listed.
The reason is that Google treats the pages in a sitemap as the proposed original URLs. In some cases, site owners also decline to choose the URLs in their sitemap as the original URLs.
Set up the canonical link with a 301 redirect
Use a 301 redirects redirect when you want to send traffic from a duplicate URL to the original URL.
Example: Your website may be reachable through these links:
- example.com
- example.com/index.php
- example.com/home/
Pick one URL as the original and redirect all the others to it.
How to check a Canonical tag
Check using Page Source
To check a page's Canonical tag with Page Source, follow these simple steps with MONA:
Step 1: Move the cursor to any empty area of the page, right-click and choose View page source. You can also use the shortcut Ctrl + U to open the page source in a new tab.
Step 2: Press the keys Ctrl + F. In the search box that opens, type “canonical”
Step 3: All the rel=“canonical” tags will appear. Then check whether the URL in the code is the canonical URL and the Canonical tag is correct.
Check with SEO tools
These two Mozbar and SeoQuake tools are both tools SEO that check canonical tags for free. In detail:
SEOQuake
How to check a Canonical tag with SEOquake:
Step 1: Install the SEOquake extension in your browser.
Step 2: Open the page you want to check. Then click the SEOquake icon in the extensions area at the top right of the screen and choose DIAGNOSIS. The page's Canonical tag shows in the Canonical line.
Mozbar
How to check a Canonical tag with Mozbar:
Step 1: Install the Mozbar extension in your browser.
Step 2: Open the page you want to check. Then open Mozbar, click the “page magnifier” icon on the left and choose the tab Page Analysis.
Step 3: Choose General Attributes, and the Canonical tag details will show in the Rel=“canonical” line. Check whether these URLs are already the canonical ones.
Common mistakes when using the Canonical tag
Many SEOs misunderstand how to use the canonical URL. Here are some common mistakes when using canonical tags:
Blocking the URL in Robots.txt
Blocking a URL in robots.txt stops Googlebot from crawling it. That means bots can't see any Canonical tag on it, so Google can't pass the “link equity” from the non-canonical page to the canonical one.
Putting a “noindex” tag on the canonicalized URL
Remember not to combine noindex and canonical, because they send opposite signals.
Google usually gives canonical priority over the “noindex” tag. If you want to noindex a page and point it elsewhere, use a 301 redirect. Otherwise, just use rel=”canonical”.
Returning an HTTP 4XX code for the original URL
Returning an HTTP 4XX status code for the original URL has the same effect as using a noindex tag.
Not using Canonical with Hreflang
The Hreflang tag specifies the audience of a site by language and geographic location.
Google's advice on using the hreflang tag: you should “specify the original page in the same language as the site, or in the best alternative language if no common language can be found for both”.
Adding too many canonical tags
When several rel=”canonical” tags appear, Google ignores all of them. This happens because canonical tags get added to the system at different times.
In some cases rel=”canonical” is added by JS. Google accepts this when the original URL does not appear in the HTML and you then add rel=”canonical” with JS.
On the other hand, you should not swap in a different preferred page with Javascript if the HTML already has a canonical tag.
Placing the rel=”canonical” tag in the Body
Rel=“canonical” should only appear in the <head>. A canonical tag in the <body> of a site is easily ignored.
Things to keep in mind when using the Canonical tag
Keep these points in mind when using the Canonical tag:
A canonical tag can reference itself
A canonical tag can point to the current URL. In other words, if URLs A, B and C are duplicates and A is the canonical link, you can put a canonical tag pointing to A on URL A itself.
Use Canonical on your homepage proactively
Homepage duplication is quite common, and people can link to your homepage in many different ways. Put a rel=”canonical” tag on your homepage URL to prevent unexpected problems.
Check dynamic Canonical tags
Faulty code can make the system write a different canonical tag for every version of a URL. Check your URLs right away, especially on e-commerce and CMS pages.
Avoid conflicting signals
Conflicting signals can lead search engines to misidentify a canonical tag or interpret it wrongly. In short, don't set a rel=”canonical” to page Y on page X, and then set a rel=”canonical” to page X on page Y.
Likewise, don't set a canonical tag from page X to page Y and then use a a 301 redirect from page Y to page X.
-> See more: What is a 302 redirect? How to redirect temporarily with 302
Use cross-domain Canonical tags for duplicate content on different domains
If you manage both sites, you can use cross-domain canonical tags between those domains. For example, a company that publishes media content may post the same article on several sites. A canonical tag focuses the ranking on one page to help it rank higher.
Use cross-domain Canonical
How do you get the most from cross-domain Canonical? Some websites or blogs republish articles from other sites with related content, which is why you see the same content on more than one site.
If you manage several sites and often post the same articles and content across them, a Canonical tag concentrates ranking value on the original URL on the site you choose.
Check your Canonical tags after adding them
Check carefully that the right page URL is in each Canonical tag. This keeps mistakes and slip-ups that lead to wrong canonical tags to a minimum.
This check matters most on e-commerce sites and CMS-driven systems. You can use tools to check canonical URLs, and Open SEO Stats is one many SEOs prefer.
Standardize your homepage regularly and proactively
Duplicate homepages are a common mistake, so adding a Canonical tag in this case is essential.
Declare the canonical page for the mobile variant
If the canonical page has a mobile variant, add a rel=“canonical” link to that page pointing to the mobile version of the page.
Frequently asked questions about the Canonical tag
1 – Does rel=canonical pass 100% of link value to the canonical page?
The rel=canonical tag doesn't pass 100% of link value to the canonical page, but it passes most of it. Search engines don't say much about this, but using a canonical tag does benefit SEO.
2 – Can you use a Canonical tag if the two pages aren't identical?
You can use a canonical tag when two pages aren't exactly the same, but don't abuse it. Search engines may honor the tag even if the content on the pages differs.
However, if search bots see you using canonical tags on pages that aren't really duplicates, they will start ignoring all the canonical tags on your site.
3 – Why is Canonical so important for SEO?
The main purpose of the Canonical tag is to tell search engines which page is the original version of the content and which are duplicates. Google then decides which page to index and rank.
Besides this main purpose, the canonical meta tag brings other benefits:
- Consolidates link value (PageRank) from all duplicate pages into one main, canonical page.
- The Canonical tag helps manage content by telling search engines which site holds the original version of the content and which only republishes it (or provides information).
- Improves how your site gets crawled. Canonical tags help search engines like Google crawl and index the pages SEOs actually want crawled and indexed.
4 – Can you canonicalize every page on a website?
There is still a lot of debate over whether rel=canonical can be applied to every page on a site. One view is that overusing rel=canonical makes bots take the tag less seriously on your site.
If you want to apply the tag to every page on your site, it is possible. Just make sure the syntax of every tag is correct.
5 – Can you canonicalize a page on another website?
You can canonicalize a page to another website. The rel=canonical tag works across different domains.
That covers what a Canonical tag is. We hope you now have the information you need about canonical links to optimize your website's SEO. If you still have questions on this topic, contact MONA and we will answer your SEO questions.
Please contact us via:
- Hotline: 1900 636 648
- Email: info@themona.global
- Address: 1073/23 Cach Mang Thang Tam, Tan Son Nhat Ward, Ho Chi Minh City
-> See also:
- What is pagination? Why paginated pages matter
- Common technical SEO errors and how to fix them
- See our best SEO training courses
Related articles
Professional website
design services
Own a website with a beautiful, 100% exclusive design and a lifetime warranty, with the ability
to expand features flexibly as your business grows, starting today!































Free AI courses
AI tools at work
VI
EN
