Yoast is using the wrong Canonical URL: How to Fix It

If you’re using Yoast SEO and you’ve noticed that the canonical URL is wrong, don’t panic – it’s an easy fix. Fortunately, there’s an easy workaround and tutorials. With just a few clicks, you can flush the Yoast tables and migrations, allowing you to remove the plugin and change your canonical URL.

How to fix: Yoast Canonical URL is Wrong

1. To start troubleshooting, first install the Yoast Test Helper Plugin of your Yoast SEO plugin on WordPress plugins.

Yoast Help Tester

2. Go to Tools > Yoast Test.

3. In the “Yoast SEO” box with a bunch of buttons, use the “Reset Indexables tables & migrations” button to flush them.

Reset Indexables tables & migrations

4. You can then uninstall the plugin, remove your manually-entered canonical URL, and the default (autogenerated) canonical URL will be fixed.

And that’s it! This simple workaround will save you time and hassle when changing your website’s canonical tag URL.

Advanced mode

Using the WP-CLI command, enter the following to reset the tables.

WP Yoast index

Conclusion

Canonical URLs are essential to SEO, but they can be tricky to get right. Our team is here for you if you’re having trouble flushing your canonical URLs or just need a little help setting them up. We have years of experience working with WordPress SEO (WPSEO) or WordPress websites and can help you get your website up for optimal search engine performance. Contact us today to learn more!

FAQ

  • How do you troubleshoot and fix an issue where Yoast SEO plugin is setting the wrong canonical URL?

Published on: 2022-08-25
Updated on: 2024-04-10

Avatar for Isaac Adams-Hands

Isaac Adams-Hands

Isaac Adams-Hands is the SEO Director at SEO North, a company that provides Search Engine Optimization services. As an SEO Professional, Isaac has considerable expertise in On-page SEO, Off-page SEO, and Technical SEO, which gives him a leg up against the competition.