Skip to main content

What is a canonical URL, and how do you set it?

The Tasadr team · ·3 min read

A canonical URL is the address you prefer Google to show for a page that has several similar addresses, such as one with sorting parameters and one without. You set it with rel=canonical or a permanent redirect. It is a preference Google weighs with other signals, not a command it follows to the letter.

Also known as canonical URL · canonical tag · rel=canonical · canonical link · الرابط الأساسي · كانونيكال

On this page (7)
  1. What is a canonical URL?

    It is the address you treat as the preferred one among pages that are identical or very similar. When the same content opens at more than one address, such as a link with a tracking parameter and a clean link, you tell Google which one to show in results.

    Google says that if you specify nothing, it picks the version it judges best for users. The canonical gathers the signals on one address instead of scattering them across copies.

  2. Which methods set the canonical URL, and which is strongest?

    Google lists three methods of different strength. A permanent redirect and the rel=canonical annotation are strong signals, and listing the address in a sitemap is a weak one. All are preferences Google weighs, not binding orders, so use one method and do not mix two that disagree.

    Ways to set the canonical URL at Google
    MethodSignal strengthWhen to use it
    Permanent 301 redirectStrongWhen you remove the duplicate for good
    rel=canonical tag in the page or an HTTP headerStrongWhen the similar copies stay available to visitors
    Listing the address in a sitemapWeakA boost to the stronger methods, not a substitute
  3. An Arab-market example: a shoe store in Riyadh

    An illustrative example. A fictional store at riyadh-shoes.example has one sports shoe page that opens at three addresses: the clean one, one with a price sort and one with an ad campaign code. Google sees three pages for one product and splits the signals among them.

    The store puts a canonical tag in all three that points to the clean address. Links and signals gather there, and Google will most likely show the address you chose in results, though it is not bound to.

  4. What steps should you take to set the canonical URL?

    Give every important page one preferred address, and point to it from every copy that follows it.

    • Put in each page a canonical tag that points to its full address, with protocol and domain.
    • Point the tag to a page that works, not a redirected or blocked one.
    • List only the preferred addresses in your XML sitemap.
    • Check in Google Search Console which address Google actually chose, with URL inspection.
    • Review your key pages in AI Readiness.

Sources

  1. How to specify a canonical URL with rel=canonical and other methods · Google Search Central ·

Frequently asked questions

What is the difference between a canonical tag and a 301 redirect?

A redirect sends the visitor to the other address, so the duplicate no longer exists. A canonical tag keeps the copies available to visitors and tells Google which one you prefer.

Does Google always follow the canonical I set?

Not always. It is a signal Google weighs with others, and Google decides which pages are duplicates. So keep your signals consistent and do not let the tag, the redirect and the sitemap disagree.

Does the canonical URL matter to AI engines?

It does, because signals gather on one address and it is easier for an engine to find your right page and cite it. It is part of a healthy site, as in the crawler guide.