I have the following domains/subdomains. They are all related to each other, yet they must be on different domains/subdomains
example.com www.example.com (redirects to example.com) sub1.example.com sub2.example.com example.net www.example.net (redirects to example.net) sub1.example.net sub2.example.net
I would like to have a single WordPress installation for all the above (i.e., end up with a single DB). I do understand that I can setup a multisite installation if I have a single domain with subdomains. But for the above, this would mean I end up with TWO multisite installations (one for example.com, and another for example.net).
Is it possible to setup a single multisite installation with a single database allowing more than one main domain as shown above? If so, how?
Thanks.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Yes you can, I use 25 sub sites with different domains.
1- Point your domains to WP root folder.
2- Add a new site:
3- Edit it:
4- Change URL to a new domain:
Method 2
Yes, you absolutely can. First you will want to enable multisite in your wp-config.php. Choose one site as the primary domain. After, you should be able to login and see “Network Admin” on the top left area. Look for “Sites” and select add site. You should be able to type in your permalink or domain here. You of course can also set up sub domains as well. Once this is done, you need to point your domains to the ROOT path of the wordpress install. I recommend looking into Domain mapping as well.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0


