• Resolved ikickrobots

    (@ikickrobots)


    Hello,

    I have a proxy domain (www.def.com) and there is one backend domain (abc.com). The site URL and home URL are set in wp-config.php dynamically.

    Recently, I changed my website domain from abc.com to xyz.com. However, I noticed that even after using the wpcli search-replace command, the metatags were still referring to the old domain name. Even when I triggered the cronjobs, the domain name remained unchanged. I’m puzzled as to why this keeps happening.

    To fix this issue, I installed the Yoast test helper plugin and used the “Reset indexables tables & migrations” button, which initially worked, but then after a few days, the problem reoccurred.

    I’ve also tried using the commands “wp yoast index” and “wp yoast index –reindex,” but I’m not sure how often I should run them. I assume the cronjob runs daily, but I’m not certain.

    Can you provide me with any advice on how to resolve this issue permanently?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @ikickrobots

    Thanks for using the Yoast SEO plugin. The Yoast SEO plugin uses the?home_URL?or?Site Address (URL) defined in the wp-config?file or WordPress dashboard > Settings > General to generate the URLs for meta tags.

    If this doesn’t happen, using the Yoast test helper plugin to “Reset indexables tables & migrations” should resolve the issue. But if it worked and resurfaced after a few days, there might be a conflict somewhere. The fastest way to rule out any conflict is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty-Two.

    Please test this on your development or staging site if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    If you feel uncomfortable doing this yourself or if this does not solve your issue, our Yoast SEO Premium plugin comes with one year of (technical) support.

    Thread Starter ikickrobots

    (@ikickrobots)

    Hello,

    Thank you for your reply. How often do we need to click on “Reset indexables tables & migrations”? button? Is it once after we do the migration or should we click on a regular basis? What is the equivalent cli command for it in case we need to run it on a regular basis?

    When I run wpcli wp option get home and wp option get siteurl, it always returns the proxy domain, abc.com so I believe the wordpress-seo cron hooks like wpseo-reindex , wpseo_permalink_structure_check and wpseo-reindex-links should solve the problem, isn’t it? Can you clarify more?

    Thank you again.

    Plugin Support Maybellyne

    (@maybellyne)

    Thanks for the feedback, @ikickrobots. You shouldn’t need to reset the indexables tables & migrations often. Learn about Yoast SEO WP CLI: Reindex Indexables command

    Thread Starter ikickrobots

    (@ikickrobots)

    Hello,

    Sorry but the issue is still there. I used yoast test helper plugin, the metatags are changed to the backend subdomain name. I then run wpcli search-replace to replace all the backend subdomains to the actual host name and then ran wp yoast index. All looked good but when I checked the next day, in metatags, there was subdomain name. I am not able to figure out why. I believe it is due to home_url. I found that it was switched to backend subdomain name, I am not sure why. If I run wp option get home or wp option get siteurl from cli then it gives me the correct domain name.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Reindexing URLs’ is closed to new replies.