• Resolved Bryce Jacobson

    (@drivenfaroff)


    I updated Yoast SEO to 14 and ran the indexing when working on a site locally. The site just went live and after doing my standard search/replace of urls there were still a bunch that were pointing to the local url. All of the urls were in schema and open graph tags from Yoast.

    I’m not sure how the new indexing deal is storing the urls but a standard search/replace through wp cli isn’t catching these.

    I tried running the wp yoast index but since things were already indexed this didn’t do anything.

    I ended up installing the helper plugin and resetting the indexing but I feel like there should be a different/easier way to do this.

    In the future I know not to click that indexing until the site is in live mode but thoughts on a wp search-replace being able to change these urls or having something like wp yoast index --force or wp yoast index reset be able to do it instead of having to install the helper plugin?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @drivenfaroff and thanks for the report! Interesting finding. I’m going to raise this on our bugreports to see if we can / want to register these tables correctly.

    As a workaround you can use this (I found this to work on my installation): wp search-replace '<search>' '<replace>' wp_yoast_* --all-tables-with-prefix

    This will include all tables that use your sites’ prefix (you can also use the more aggressive --all-tables) and only use the tables named wp_yoast_<wildcard>. So if you use something else than wp_ as prefix, change that in the table name as well ??

    As for your suggestion, 14.1 will ship with a --reindex parameter.

    Thread Starter Bryce Jacobson

    (@drivenfaroff)

    Awesome! Thanks for the update.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search Replace Doesn’t Change URLs that are Already Indexed’ is closed to new replies.