After moved website from localhost to live server, breadcrumbs has still old url
-
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)
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.