Your code breaks the Canonical link
-
Hey,
I just got warnings about many pages on my website not having a valid canonical link. Looking at it, I had the following tag:
<link rel="canonical" href="/11-ways-of-promoting-your-niche-website/" />
A valid canonical link is required to be a full path:
<link rel="canonical" href="https://www.internetaffiliate.com/11-ways-of-promoting-your-niche-website/" />
The option you offer, Remove relative domain from internal URLs, can’t be set to Yes or you lose a valid canonical link!
I’d bet there are a few others like that which required to always use a full URL even if a relative URL could be valid.
In case of Canonical, it is because it covers sub-domains. For example, I could have a copy of my page at:
https://my-server.internetaffiliate.com/11-ways-of-promoting-your-niche-website/
That copy could be on my server so I can run tests before changing my live website. But to make sure Google does not view that as a different website, I would use the same
<link ...>
as shown above.Anyway… makes me sad, I like the idea of having “clean URLs” instead of having the full domain + path in each anchor.
The page I need help with: [log in to see the link]
- The topic ‘Your code breaks the Canonical link’ is closed to new replies.