• Resolved perlastudio

    (@perlastudio)


    Hello,

    I was very surprised when I saw the old url in breadcrumbs after moving my website to hosting from a local server. I used WP CLI:

    wp search-replace "http://localhost/project-wp" "https://example-domain.com" --report-changed-only --precise

    I solved this problem with script php (search-replace-db)

    /**
     * @link https://github.com/interconnectit/Search-Replace-DB
     */
    
    php srdb.cli.php -h host -n dbname -u dbuser -p "pass" -s "http://localhost/project-wp" -r "https://example-domain.com"

    but I don’t know if it’s a good idea…

    Why this is happening?

    I found WP CLI: Reindex Indexables command -> https://developer.yoast.com/features/wp-cli/reindex-indexables/

    Is this a better option?

    Thanks for help

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

    (@maybellyne)

    Hello @perlastudio,

    Thanks for reaching out about your breadcrumbs. I am unsure about your search & replace script approach, but I recommend the WP CLI: Reindex Indexables command. We have seen unexpected issues where the previously optimized data is invalid or incomplete. So resetting the optimization to ensure invalid data has been removed is recommended.

    Please let us know if the reported issue remains after resetting the optimized data.

    Thread Starter perlastudio

    (@perlastudio)

    Hello Maybellyne,

    I tried WP CLI: wp yoast index --reindex

    But, after run above command, nothing happened:

    [14:11:10] [R] [CMD] wp yoast index --reindex
    [14:11:10] [R] [shell] Open
    [14:11:11] [R] [shell] Close

    So I downloaded the plugin Yoast Test Helper and I have started the function Reset Indexables tables & migrations. It has helped me… Now all urls in breadcrumb are good.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘After moved website from localhost to live server, breadcrumbs has still old url’ is closed to new replies.