Canonical issue RE: Staging URL
-
Hello-
I’ve been using Yoast SEO for years on a client site, and recently I’m digging more into her backend issues to improve her rankings. I noticed that many of her site pages have canonical errors (The canonical URL is a dead URL), and that will likely prevent these pages from being indexed correctly. The canonical URL on these pages is set to an old staging site URL (for example, for the “www.LIVE-WEBSITE/about-me” page, the canonical URL is “www.NO-LONGER-ACTIVE-STAGING-SITE/about-me”. Perhaps this was done automatically by the plugin when it noticed that the staging site had the same content as the live site. This is odd if so.
When I go into the Yoast settings on one of the affected pages, and look in the “advanced” section, there is no entry in the “canonical URL” field, but I can confirm the presence of a canonical URL via the source code. If I type in a space to that “canonical URL” field and click “update”, the bad canonical is now gone (problem solved!). The issue is that I have 250 pages to go.
My questions:
1) Why did that happen (automatically adding canonical URLs for the staging site), and how do I prevent it from happening when I use my staging site to make edits next time?2) How can I fix this issue in bulk? I have seen solutions that hide all canonical URLs, but I do not want to cut out the ability to have canonical URLs in general – I just want to refresh or repair these existing issues.
Thanks in advance for the help!
- The topic ‘Canonical issue RE: Staging URL’ is closed to new replies.