Question
WP Multisite, different Domains, 1 Install
I followed the guides, and now have Wordpress MU with 3 websites.
But, only the one I installed first works from it’s own address at the moment.
The other 2 are stuck at xx1.website1.com and xx2.website1.com. They should be xx1.com and xx2.net.
I changed the apache config file, basically just added the same lines with different aliases. Added in sites-available for the 3 websites. did a2ensite and reloaded apache2.
Now, I changed the addresses in the WP MU install (mySites /networkadmin/Sites) to the correct url. But nothing is loading at that domain…
I don’t know what step I missed, and can’t find a guide on remapping domains on WP Multisite. Could anyone point me in the right direction?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
http://imgur.com/MENguiH
It seems my perma-links are not working… So something went wrong somewhere…
All info (htaccess, wp-config, 000-site.conf, apache2.conf) are pasted below.
Many thanks to anyone that’s able to point me in the right direction!!!
Set the
AllowOverride
directive inside every<Directory /var/www>
block toAll
.The vhost file meant for this Multisite setup should have all the domains in `
ServerAlias
.Ensure mod_rewrite is enabled:
If not enable it:
It’s still only the first website that is showing…
I now have 3 .conf files in sites-available:
000-default.conf that has all the sites in the ServerAlias and the main website as the ServerName (NOT the IP adress as I had put before)
000-xx1 for my second site just has that sitename as ServerName and ServerAlias
000-xx2 for my thirds site just has that sitename as ServerName and ServerAlias
I made sure to put all the AllowOveride All in all the instances I found it
I changed the apache2.conf file as well, it’s like this now (ServerName = website name, not the IP adress)
I also encountered this in the apache2.conf file. Is this the correct setting?
Then I restarted Apache, but still nothing. Mod rewrite was enabled already.
Do I need to fill in the site URL in wordpress ‘SITES’ now, instead of the subdomain it’s parked at now? Or what is the next step to check?
I added the wildcard for my main domain name to the 000-default.conf and apache2.conf
restarted apache2, still nothing
Also tried to input the correct domain names for the 2 sites in the SITES part of the WP Multisite admin.
Still not working. In the mean time, the permalinks are back on, thank god (was probably the AllowOverride All part, of course).
Is there anything I need to mention in any of the files to point the sites to a specific directory? They all point to /var/www now, is Wordpress supposed to figure the rest out by itself?
I’m a bit lost.. .Should I consider transferring everything to Nginx…?