Skip to content Skip to navigation
Back to the main support

Create a canonical URL

The importance of canonical URLs

Discover the importance of canonical URLs and their impact on your website’s search engine optimization by watching this tutorial video. In just a few minutes, you’ll learn how to create custom canonical URLs like a pro, ensuring proper URL structure and avoiding duplicate content issues. With step-by-step guidance, this video will empower you to take control of your website’s SEO destiny. Don’t miss out on this opportunity to enhance your website’s visibility and boost its rankings. Watch now and unlock the secrets of canonical URLs.

What’s a canonical URL?

A “canonical URL“, also known as the “canonical link element” or “canonical tag“, is an HTML attribute used to indicate the preferred version of a webpage when multiple versions of the same content exist. It is primarily used to address issues related to duplicate content on the Internet.

Duplicate content occurs when identical or substantially similar content appears on different URLs. This can happen for various reasons, such as:

  • when different versions of a webpage are created for mobile and desktop devices,
  • or when multiple URLs point to the same content due to URL parameters, session IDs, or tracking codes. For example:
    • example.com?dress=1234 and
    • example.com/dresses/1234

Note that the pages do not need to be absolutely identical; minor changes in sorting or filtering of list pages do not make the page unique (for example, sorting by price or filtering by item color). The canonical can be in a different domain than a duplicate.

The purpose of the canonical URL is to inform search engines which version of the content should be treated as the authoritative or primary version. By specifying the canonical URL, website owners can help search engines understand their preferred version and consolidate the ranking signals and link equity for that particular URL.

The canonical URL is specified within the HTML of a webpage by adding the following tag in the head section:

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

In this example, “https://www.example.com/original-page” represents the preferred or canonical URL of the webpage. By including this tag, website owners indicate to search engines that this is the URL they want to be indexed and displayed in search results.

When search engines encounter a canonical URL, they generally consolidate the ranking signals and attribute them to the specified canonical URL rather than considering the duplicate versions separately. This helps prevent duplicate content issues from negatively affecting search engine optimization (SEO) efforts by avoiding potential penalties for duplicate content.

It’s important to note that the canonical URL is a recommendation to search engines, and they ultimately decide whether to honor it. However, in most cases, search engines respect the canonical tag and treat the specified URL as the preferred version.

By implementing canonical URLs correctly, website owners can manage duplicate content effectively, consolidate their SEO efforts, and ensure that the desired version of their webpages receives appropriate visibility in search engine results.

How-to create a custom canonical URL?

SEOPress automatically handles canonical tags, you don’t have to worry about that.

However, it might be necessary to customize it for the reasons listed previously in this guide.

To do that, edit the post, page or post type of your choice with Classic Editor or the Block Editor (Gutenberg).

Scroll down to the SEO metabox.

Click on “Advanced” tab, and scroll down to “Canonical URL” field.

Enter the desired value.

Don’t forget to save.

Advanced tab, SEO metabox
Advanced tab, SEO metabox