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.
I guess I need Nginx to do this, and cannot simply change some apache2 files… Didn’t know that!
no, Apache will work fine. I have set it up several times for Wordpress Multisites.
But go ahead and try Nginx and see if you can get further along. There are a couple of other things I can suggest if you are still having problems.
btw: are you using a plugin to map domains in Wordpress Multisites? If not, you need to add each domain to the database under wp_sites table.
You may want to change your WP DB password and username as you made it public here.
cool, nothing broke! :) thanks a lot mr Sierracircle! :)
If anyone sees this, I somehow switched to Nginx by doing half the tutorial… I never activated it nor deactivated Apache… Is this going to be a problem in the future? Do I simply not use Apache anymore now, or is it still needed/used for something? Thanks
(I found out when uploading sitemaps… then I thought I would deinstall Nginx, which resulted in all the sites going down :D So happy removing Nginx does not remove its settings!! :D)
yes, i do have the plugin… But you make a very very good point.
My domains do not go to my website… at all
Let me see what I can do about that…
edit: yes, I have WordPress MU Domain Mapping installed.
And I tried auto-fill the Site ID number… I have them as 2 for the second site and 3 for the 3rd site… Can I find the correct Site ID anywhere…?
thanks mate! I’m learning every second… Done now :)
The wp-config.php is the only place I need to put the new password, right?
I’m doing this guide now to see if it gives me domain mapping superpowers :)
I guess I need Nginx to do this, and cannot simply change some apache2 files… Didn’t know that!
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…?
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?
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 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!!!
http://imgur.com/MENguiH