How to do domain mapping for WPMU subdom correctly?


#1

Hi guys! I wonder how you are mapping your custom domains to existing subdomains with native built in wordpress mapping? As soon as I change the subdom address to the new domain it redirects to the main site of the multisite.

The documentation that I’ve found on this is all for using a domain mapping plugin or for cases were new server blocks for every new domain can be added.

Thanks!


#2

According to what I see, it is not supported at v4


#3

Ohh no… Were did you see this?


#4

Domain mapping works. What doesn’t work is SSL with Let’s Encrypt: How to install Letsencrypt for domains on WP Multisite (subdom)?


#5

It works for me, I was able to do this last night.


#6

That’s great news! Would you mind sharing how you achieved this? Hopefully without a multidomain ssl certificate.


#7

I just used what was already in the documentations:

ee site create roadfinch.com --type=wp --mu=subdom --ssl=le --wildcard

You will need to add 2 TXT records in your DNS records, just follow the prompt.


#8

Yes, thank you, this part I have covered. It is the action of the mapping of a custom domain name to a subdom that fails.

My problem is that after mapping both the mapped domain and the subdom redirect to the multisite primary domain. So I’m wondering how you guys are getting around this?

I’m guessing that since the custom domain lacks a cert then the server does a http->https redirect to the primary domain. I’m thinking that perhaps installing a self signed cert for the custom domain first before mapping it might help?

Then perhaps going with Cloudflare universal ssl. But would I CNAME the custom domain to the primary domain or have to add a new domain completely?

Cheers,


#9

Can confirm this, custom domains for sub sites do not work.


#10

This is weird, customized domains are now working in multisite.

https://semver.tk
https://elgg.tk

19%20PM

53%20PM