Support » Plugin: Yoast SEO » Canonical URL incorrect

  • Resolved ammdog


    Running v 14.0.4.
    When posts are synced from my staging site to prod, the canonical URL (along with some other references) set by Yoast do not update correctly on the target Prod site. They show the URL of the source staging site instead.
    The setting in Yoast is blank which should then use the actual page URL. This is a recent artifact. All other URLs and paths (not handled by Yoast) update correctly in the sync from staging to prod.

Viewing 4 replies - 16 through 19 (of 19 total)
  • Use Version V 1.9, It is working. 👍There is some problem with the newer version.

    For me this problem just keeps coming back, so I end up with something like:

    <link rel="canonical" href="" />

    I have used wp-cli search-replace (with the ‘–all-tables’ option) to replace private IPs with the correct site URL in the ‘wp_yoast_indexable’ table, which fixes it, but then a day or so later it just comes back.

    In my case the site is running on AWS, on 2 x ec2 and it’s the private IPs of one of the servers which keeps coming back as the canonical.

    Has anyone experienced the same thing and found a solution?

    • This reply was modified 7 months, 2 weeks ago by .
    • This reply was modified 7 months, 2 weeks ago by .
    Plugin Support Jeroen Rotty


    Hi @andy-ingham,

    Please open up a new topic and give as many details as you can about the setup of your site, so we can investigate it with you. Please make sure that the Site-Address URL under Settings > General does not have the IP or it’s not configured in your wp-config.php with the IP. If both are not the case, open up a new topic so we can further investigate.

    Many thanks for getting back on this Jeroen. I’ve now created a new topic:

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Canonical URL incorrect’ is closed to new replies.