This is what I’d like to accomplish, hopefully under one WP install: I would like to use one WP install for my main domain + three subdomains, where subdomains need to be somehow “masked” / add-ons of other domains.
branch1.mymaindomain.com -> www.differentdomain.com
branch2.mymaindomain.com -> www.completelydiffdomain.com
branch3.mymaindomain.com -> www.anotherdomain.com
One idea I had is to create subdomains for each “branch” and then create an add-on domain that would point to the subdomain, but this would require installing WP in each subdomain.
Is there a way to handle this (i.e. .htaccess), where subdomain.mymaindomain.com would be masked as www.differentdomain.com?
You need the following:
1) Enable WordPress Multisite in your main domain
2) Install the plugin WordPress MU Domain Mapping
After that, you’ll be able to achieve your goal.
See http://codex.wordpress.org/Create_A_Network and associated plugins: http://wordpress.org/extend/plugins/search.php?q=multisite
I came across this question after successfully activating this on shared hosting on HostGator, and wanted to add a few extra resources.
Those are both fairly self-explanatory, and I used them & the WordPress Codex article to successfully setup WordPress MultiSite.
NameCheap.com has an excellent tutorial/article/recipe on setting up WP MultiSite AND domain mapping on shared hosting – I can verify that it also works for HostGator (this is how I solved the issues with addon vs parked domains to make domain mapping work successfully).