Still not working… How to redirect non-www to www on mapped domains?
-
This has been addressed in other threads here, but the solutions are not working for me.
Let me explain my setup more clearly:
I have a multisite network built around maindomain.com. I have clients websites on my network, which initially get client1site.maindomain.com, client2site.maindomain.com, etc. I then use domain mapping to map the client’s own domains to the sites.
I’m using CNAMES and not A Records (IP address) to point clients domains. The reason is, I don’t want clients to be tied to my servers IP address, just in case I ever decide to move servers I don’t have to ask every client to change their A Record setting.
Here is what I’m doing for each client’s domain mapping:
Add client1site.com as a Parked Domain in my cpanel.
Set a CNAME at the client’s registrar, pointing https://www.client1.com to client1site.maindomain.com
In Network Admin > Domains, I add the following two entries:
Site ID 34 (whatever the clients site ID is)
https://www.client1site.com
Primary: YesSite ID 34 (whatever the clients site ID is)
client1site.com
Primary: NoNow how do I ensure that client1site.com redirects to https://www.client1site.com?
I have tried setting up a “Forward” at the clients registrar. Most of the time, this just doesn’t work (every registrar is different).
I have tried adding the redirect code to my main site htaccess (as described in this thread) but that doesn’t affect the mapped domain at all.
Please help ??
https://www.ads-software.com/extend/plugins/wordpress-mu-domain-mapping/
- The topic ‘Still not working… How to redirect non-www to www on mapped domains?’ is closed to new replies.