How to fix: Duplicate pages without canonical

You can have several versions of a URL that point to the same content. The most common example of these HTTP and HTTPS links, for example:

http://mywebsite.com
https//mywebsite.com

Both of these URLs contain the same content. To avoid indexing the same page twice Google will choose one URL to be the conical version and identify the rest as duplicate versions of that. The rest of the URLs will be crawled less often.

That’s why you’ll want to tell search engines explicitly which URL is the canonical version or if you consider both URLs of equal weight.

How to fix it

There are several ways to fix this issue, depending on the setup you have. Here I’ve written to guides. One guide, if you have a hordpress page. And another guide if you have access to your HTML file.

If you have a WordPress page

  1. Download Header and Footer Scripts. (It’s free with 200k active installations)
  2. Click ‘Edit’ on the page or post you want add the tag to.
  3. Scroll down to the newly added box: ‘Insert Script to’
  4. Enter this code <link rel=” canonicalize” href=”https://mywebsite.com”> in the box, with the href link replaced with your link. Do not add the <head> tag.

Use Yoast SEO plugin

The Yoast SEO plugin for WordPress also has the option in their advanced tab.

  1. Download and activate the Yoast SEO plugin
  2. Head to your page or post and enter the Canonical URL at the advanced tab.
Source: Yoast

If you use the Elementor plugin

With the new Elementor update, you’ll be able to add custom code to your page. To add specific code to a URL, you’ll have to use the ‘condition’ instance.

  1. Navigate to Elementor in your WordPress admin panel.
  2. Holding the mouse over the Elementor logo choose ‘custom code’
  3. Make sure the location is set to <head>.
  4. Add your code without the <head> tag.
  5. Use conditions to choose the page you’re canonilizing.

If you have access to HTML file

If you have access to your website’s HTML file you can add the rel=”canonicalize” tag in your HTML code. The tag should be placed between the <head> tag.

<head>
<link rel="canonicalize" href="https://mywebsite.com">
</head

The href tag should include the specific URL’s. As you’re telling Google to index this page, it should be the HTTPS link. So, the above link would be the frontpage, and the next HTML page with the URL link mywebsite.com/page-one should look like this:

<head>
<link rel="canonicalize" href="https://mywebsite.com/page-one">
</head

How to see if Duplicate pages without canonical is a issue

When I analyze websites for this issue, I use Ahrefs. They’ll do free site audits for you and tell which pages needs fixing.

Leave a Comment

Your email address will not be published. Required fields are marked *