Multisite on subdirectory, but new subdomains direct child of root?
-
Our current network configuration is a bit of a mess, so please bear with me.
Issue 1
We have a wildcard – *.example.com – that points to example.com/a. a.example.com is the primary subdomain serving that content.
As we’re starting to expand, I’d like to get multisite set up so that we can create subdomains that serve their own unique content without having to install WP on each of them.
Since our wildcard is pointing to a subdirectory, by my understanding, that means that I’d also have to configure multisite on that same subdirectory. Does that mean any subdomains created on that instance of multisite will be b.a.example.com instead of b.example.com? If so, is there any way around this?
Issue 2
Additionally, our wp-config file is set up to display whatever subdomain is entered in the address bar, so foobar.example.com would show the content of example.com/a, but still display foobar.example.com in the address bar. Here’s what that code looks like:
define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST']); define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST']);
Are there going to be any issues with our current wp-config setup and multisite? My hope is that if there’s no subdomain explicitly defined on multisite, it’ll just behave like it currently is (serving example.com/a with anything.example.com in the address bar), but I’m unsure if those parameters might conflict with multisite somehow.
Issue 3
Keeping the first two things in mind, we already have a few subdirectories set up with their own WP installation, as a direct subdomain of our root domain – so c.example.com points to example.com/c. It’s my understanding that these shouldn’t be affected at all, but I just wanted to be sure.
I’m honestly not sure at this stage if it would be better to try to configure multisite, or to just keep doing what we’re doing with unique installations and maybe just use something like ManageWP to manage them all.
Any insights would be greatly appreciated!
- The topic ‘Multisite on subdirectory, but new subdomains direct child of root?’ is closed to new replies.