When and How Should You Set a Canonical URL?

ProcrustesPR

When multiple URLs have duplicate or nearly identical content and each page still needs to remain accessible to users, consider using a canonical tag to point to the preferred URL. If the goal is to send visitors to a new location, consider a redirect instead. To set a canonical URL, add a rel=”canonical” tag in the page’s head section and specify the canonical page using its full URL. The guidance below is based on awoo’s 2021 tutorial. It should not be treated as current official guidance, and there is no guarantee that search engines will adopt the specified URL.

ProcrustesPRProcrustesPRHow can I tell whether an SEO tactic breaks spam rules?

First, determine whether users still need access to the duplicate pages

The key difference between a canonical tag and a redirect is whether visitors can remain on the original page. A canonical tag lets you keep page A while indicating to search engines that page B is the preferred version; a redirect sends visitors from A to B. Having multiple URLs alone does not mean they all require the same treatment.

Google Search documentation lists redirect scenarios such as site moves, site mergers, and directing visitors to a new page after removing an old one. If multiple URLs all open the same homepage, you can also choose a canonical URL and redirect traffic from the other URLs to it. But if visitors are using options on the original page, first consider whether a redirect would interrupt what they are doing.

Product options and sorting pages: what matters is content similarity

awoo’s 2021 tutorial uses product and category pages to explain that a change in URL does not necessarily require a different canonical page. Consider the following scenarios:

  • Sizes and colors of the same product: If selecting an option only changes the URL parameters and the page content remains nearly identical, you can point the option page’s canonical tag to the canonical product page. Visitors can still select sizes and colors.
  • Category sorting and display options: If the product content on the page remains similar and different URLs arise only from sorting by price or switching layouts, consider pointing their canonical tags to the original category page.

For example, a product URL with ?color=blue&size=m is suitable for this approach only if the content is similar and the options need to remain available. A URL with parameters should not automatically be treated as duplicate content, nor should all filtered results point back to the main category page by default.

Place the tag in the head section and use a full URL

According to the tutorial, the tag must go in the webpage’s head section, not in the article body. If the canonical product page is https://www.example.com/men/t-shirt, the duplicate page’s tag would look like this:
<link rel=”canonical” href=”https://www.example.com/men/t-shirt” />

Set href to an absolute URL that includes the protocol and domain to reduce ambiguity about the intended URL. Do not enter only /men/t-shirt. If your content management interface only allows you to edit the body, switching to source-code mode does not necessarily let you insert the tag into the head section.

Finally, specifying a canonical URL does not guarantee that search engines will use it. In a 2021 Ahrefs article, Patrick Stox notes that Google uses multiple signals to determine canonical URLs. Ahrefs consolidates links based on canonical tags, but that is not proof that Google will select the same URL.

ProcrustesPRProcrustesPRShould I rewrite or update an old article that does not rank?

Canonical URLs: perspectives from across the web

Can pages in the same language on different domains use cross-domain canonical tags?

If duplicate content in the same language appears across different domains or directories, awoo’s 2021 tutorial suggests considering a canonical URL; this differs from handling versions in different languages. Before applying this approach, confirm that the content is genuinely duplicate. Avoid simply copying well-known websites’ international configurations: a 2018 Semrush article cautions that outsiders may not know the reasoning behind those decisions.

How should you indicate the relationship between desktop and mobile versions that use different URLs?

For desktop and mobile versions with similar content on separate URLs, awoo recommended in 2021 using alternate on the desktop page to point to the mobile page, and canonical on the mobile page to point back to the desktop page. This indicates the relationship between the two to search engines. This is the configuration described in that historical tutorial and should not be treated as a current platform rule.

How should standard and AMP pages point to each other when both exist?

If a website maintains both a standard version and a corresponding AMP version, awoo’s 2021 example uses amphtml on the standard page to point to the AMP URL, and canonical on the AMP page to point back to the standard page. This indicates the relationship between the two versions. However, the example comes from a historical tutorial and does not mean that all websites now need to adopt AMP.

ProcrustesPRWill Reposting Social Content on My Website Cause a Duplicate-Content Penalty?

References

  1. 重新導向與 Google 搜尋 | Google 搜尋中心  |  Documentation  |  Google for Developersdevelopers.google.com — Source used in the article above.
  2. How Ahrefs Counts Links and Domainsahrefs.com · 2021-01-12T16:00:44+00:00 — Source used in the article above.
  3. Canonical標準網址操作指南,操作SEO不再苦惱www.awoo.ai · 2021-10-01T10:13:11+00:00 — Discusses: Can pages in the same language on different domains use cross-domain canonical tags?; How should you indicate the relationship between desktop and mobile versions that use different URLs?
  4. 7 Ways To Fail at International SEOwww.semrush.com · 2018-08-29T07:00:00Z — Discusses: Can pages in the same language on different domains use cross-domain canonical tags?

Related articles

How can I tell whether an SEO tactic breaks spam rules?Should I rewrite or update an old article that does not rank?Will Reposting Social Content on My Website Cause a Duplicate-Content Penalty?What types of URLs are there, and what are they used for?What are the common mistakes, limitations, and costs of using subdomains?Can two URLs point to the same website?How to improve on-site content and structure: audit pages first, then address content gaps and internal linksHow can you use multiple domains to build content and traffic while assessing the risks?
ProcrustesPR
ProcrustesPR