I have a multisite setup where I have a mix of custom domains and subdomains of the primary site.
The majority of my custom domains automatically redirect from
www to non
www but I have one client that wants it to work the other way, i.e. you type
somedomain.com and it redirects to to
I've tried the mu-domain-mapping plugin which made me remove the
COOKIE_DOMAIN constant, removing that prevented custom domains being able to log in (they got a cookies not enabled error).
Is there a way to do this natively in WordPress multisite?