What Is a Canonical URL?

Updated: 3 min read
What Is a Canonical URL?

What Is a Canonical URL?

A canonical URL is the main, preferred version of a page, specified with an HTML tag (rel="canonical") to solve duplicate content problems on a website. It lets search engines know which URL is the original when several URLs carry the same content. That prevents duplicate content issues and gives you a more efficient structure for SEO. In short, a canonical URL determines which version of your page search engines should index first.

Why Use a Canonical URL?

Canonical URLs are used to prevent duplicate content problems and improve SEO performance. If the same or very similar content is reachable through different URLs on a website, search engines can struggle to choose between those pages, which can lead to lost rankings. A canonical URL avoids this confusion by telling search engines which page is the "original" or preferred version. This helps search engines index the right version of your page and consolidates all page authority on the designated canonical URL.

What is a canonical URL

Want this applied to your site?

Tell us your site and we'll send a short, free recommendation.

or write us right now

Your details carry over to the quote form so you can review before sending.

How to Use the Canonical Tag

The canonical tag is used to solve duplicate content problems on web pages and optimize search engine rankings. Here are the steps for using it:

  1. Decide which page should be canonical: If multiple URLs carry the same or similar content, you need to tell search engines which URL takes priority. Once you have chosen it, you will use it as the canonical URL.

  2. Add it to your HTML code: The canonical tag goes in the <head> section of your page. The snippet below specifies your page's canonical URL:

    <link rel="canonical" href="https://www.examplewebsite.com/original-page" />

    This code tells search engines that the original version of this page is "https://www.examplewebsite.com/original-page".

  3. Use it correctly on every page: Define a canonical URL for each page. Using the tag correctly matters most when you have duplicate content or dynamic URLs (for example, product filters or pagination).

  4. Use it across different domains: If you publish the same content on different domains (for example, on several websites), the canonical tag lets you tell search engines which domain is the primary source.

  5. Add a canonical tag to your own page: Even if a page is already unique, you can still add a canonical tag pointing to itself to show search engines that the page is its own canonical version.

Using the canonical tag correctly prevents duplicate content problems and improves your technical SEO performance.

When using the canonical tag, take care not to add multiple tags, and be careful not to canonicalize paginated pages to a single page. Also avoid typos in the code. The most common mistake is not writing the full address. As an example of wrong and right usage:

  • Correct usage: <link rel="canonical" href="https://www.examplewebsite.com/index.php">
  • Incorrect usage: <link rel="canonical" href=examplewebsite.com/index.php">

Basic Rules for Using Canonical URLs

  • Choose a Single, Original Page: The canonical tag tells search engines which page is the original when several pages carry the same or similar content. Always choose the most accurate, original page for the content as the canonical URL.

  • Add Only One Canonical URL per Page: Each page should have only one canonical tag. Multiple canonical tags can make it hard for search engines to tell which one is valid.

  • Use Self-Referencing Canonicals: Even if your page has no duplicate content problem, adding a canonical tag that points to the page itself is good practice. It shows search engines the page is the original on its own.

  • Watch Out for Different URL Versions: Choose a single canonical URL for all pages that can be reached in different versions, such as HTTPS, WWW and URL parameters. For example, if "https://www.site.com" and "http://site.com" point to the same page, set one of them as the canonical.

  • Make Logical Choices: The canonical tag should point to the right page. For example, rather than pointing the paginated results of a product to the main product page, choose the most important, main version of that page.

  • Get the URL Structure Right: Make sure the URL in the canonical tag is complete. Use absolute URLs (for example, "https://www.example.com/page") so search engines can recognize the correct address.

  • Use It Correctly Across Domains: If you publish the same content on more than one domain (for example, a main site and a microsite), point to the original domain with the canonical tag. This prevents content duplication problems.

Don't let your competitors be found first

Write to us for a free analysis and price quote, and we'll build your roadmap.

Get a Quote