Today I learned the hard way that WordPress multisite doesn’t quite support domain mapping out of the box the way I expect it to.

I’m working on a website-as-a-service product called ToothPress (more on that at some point in the future). On a paid plan, ToothPress customers will be able to map their custom domain. My dad is my first beta user, so I changed his domain from milwaukiefamilydentistry.toothpress.com to milwaukiefamilydentistry.com:

2016-07-07 at 10.35 AM

Then, I went to log into his dashboard:

2016-07-07 at 10.36 AM

Uh oh, what’s going on?!

As it turns out, WordPress doesn’t magically handle setting the correct COOKIE_DOMAIN. You’ll need to take care of this yourself:

Et voila!

 

Comments

Hand Built is Daniel Bachhuber, an effective developer with technology leadership you can trust.

How can I help?

Hit me at [email protected] with a short note about what you'd like to do.

My roots are WordPress and publishing, and I love pretty much everything related to web development (architecture, performance, security, etc.). When not working with clients, I also maintain WP-CLI (WordPress' command line interface) and other open source projects.