Who knows, this may be useful to some.
Setting up a staging WordPress instance:
- Go to cPanel
- Select the live site, usually www. and clone it
- Perhaps as staging. or dev.
Once you have setup the new site using the clone site, usually replacing the theme and plugins, then to go live:
- Go to cPanel
- Backup live site
- Delete www.
- Clone .staging or .dev to www.
That’s it.
To stop Google getting confuse with your multiple sites, worth changing settings to