Reply To: Website Migration to a Different Domain

forums forums Circle Flip Support Website Migration to a Different Domain Reply To: Website Migration to a Different Domain


Bassam Tarek
Keymaster
#9641

Hi,

You can use wpcli to replace all the strings in the sql file from the source to the destination:

1- $ wp db import source.sql “the sql file that is exported from the source and you want to import in the destination site”
2- $ wp search-replace ‘http://source.com’ ‘http://destination.com’ –recurse-objects –all-tables –dry-run
3- check test result, if ok, remove dry-run
4- $ wp search-replace ‘http://source.com’ ‘http://destination.com’ –recurse-objects –all-tables

and you are done

Unfortunately we can’t replace the way of saving the data right now

Thanks