I set up the site network to use subdomains locally (on Windows 10 AMPPS) and my hosts file has:
127.0.0.1 localhost
127.0.0.1 www.wooco.dev
127.0.0.1 bumbashop.wooco.dev
C:\Program Files (x86)\Ampps\apache\conf\extra\httpd-vhosts.conf:
#### www.wooco.dev VirtualHost ####
<VirtualHost 127.0.0.1:80>
DocumentRoot "c:/program files (x86)/ampps/www/wooco.dev"
ServerName www.wooco.dev
ServerAlias www.wooco.dev *.wooco.dev
ScriptAlias /cgi-bin/ "c:/program files (x86)/ampps/www/wooco.dev/cgi-bin/"
<Directory "c:/program files (x86)/ampps/www/wooco.dev">
Options FollowSymLinks Indexes Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog "C:/Program Files (x86)/Ampps/apache/logs/www.wooco.dev.err"
CustomLog "C:/Program Files (x86)/Ampps/apache/logs/www.wooco.dev.log" combined
</VirtualHost>
.htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^wooco.dev$
RewriteRule (.*) http://www.wooco.dev/$1 [R=301,L]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
There must be a way to do this, right? Whatever configuration this is here I'm pretty sure this was how it was when I was able to run www.wooco.dev/wp-activate.php?key=........ to activate a subsite registration for bumbashop.wooco.dev, which now loads a blank page 200 OK rather than an error.
UPDATE: It's working now and I don't know how.