- restore database and files.
- change php.ini (increase upload_max_filesize and post_max_size values if needed).
- change wp-config.php (database name, userid, and password).
- change domain name entries in SQL table wp-options (siteurl and home entries).
- Install and activate the Better Search Replace plugin if not yet done so.
- run the Better Search Replace plugin (dashboard->Tools)
- Choose tables wp-posts and wp-postmeta.
- replace ‘https://testsite.songchanhniem.com‘ with ‘http://localhost/scn-test‘
- replace ‘http://testsite.songchanhniem.com‘ with ‘http://localhost/scn-test‘
- run Elementor’s URL Replace tool (elementor->tools->URL Replace
- replace ‘https://testsite.songchanhniem.com‘ with ‘http://localhost/scn-test‘
- replace ‘http://testsite.songchanhniem.com‘ with ‘http://localhost/scn-test‘
- Deactivate the Better Replace Search plugin once migration is completed.
NOTE: Do not need to run Regenerate CSS because running it seems to make Elementor’s global custom colors disappeared.