[bitfolk] Changing a WordPress site's hostname

Top Page

Reply to this message
Author: Andy Smith
Date:  
To: users
Subject: [bitfolk] Changing a WordPress site's hostname
Hello,

I know there's a few WordPress experts here. Can I pick your brains?

Say I have a WP site at https://dev.example.com/ and I now want to
copy it and put it live at https://example.com/. Having read:

    https://wordpress.org/support/article/changing-the-site-url/


do I just…

- Copy the filesystem structure from one document root to another

- Dump the database and re-insert it into a new database

- Install wp-cli and run

$ wp search-replace 'dev.example.com' 'example.com' --skip-columns=guid

and then it's all switched?

Cheers,
Andy