How to do domain mapping for WPMU subdom correctly?


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.



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


Ohh no… Were did you see this?


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


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


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


I just used what was already in the documentations:

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

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


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?



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


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