I have a Local site (hosted on an external drive, if that’s relevant) which we’ve been working on for a while and which we now have to make into a multisite network (main site and a subdomain).
In Local 5.x, if you can edit the sites.json file in:
That file holds all the settings for all the sites. You need to find the site you are looking for. You can search for the directory name: site-name, and then after that find the
multiSitesetting. Something like
"multiSite":"". Change that setting to
"multiSite":"ms-subdomain". That will be a subdomain set up.
I did this, and it shows as a “Multisite: Subdomains” on the Local overview—great!
However, when I start the site, I get a button titled “Sync multisite domains to hosts file.” Clicking this does nothing.
Can anyone give some guidance here? This is my first time setting up multisite on an existing Local site. (And, I don’t have a live site to migrate for this).
nginx, PHP 7.3.5, MySQL 8.0.16, WP Version 5.9.1