I'm running a subdomain-based multi-site network with domain mapping and SSL. I have wildcard SSL working so all the subdomains work with the wildcard SSL. I have logins and admin sections forcing SSL, so they all use the subdomains instead of the mapped domains. I also have the Marketpress cart page and checkout forcing SSL, so those are excluded from domain mapping. That all works properly.
However, sometimes the system wants to present a mapped domain as https. An example of this is using the Divi page builder preview on a domain-mapped site. I NEVER want the mapped domains to use https, in order to avoid making the users get their own SSL certificates. Is there a way to say that whenever you use the mapped domain, force http and not https? I am OK with coding my own solution and using your filters, but in that case just point me to the proper filter to use.
I tried forcing the front-end pages to use http instead of https, but then when you try to go to the cart (where there are settings to force https and exclude mapping) it ends up in a redirect loop. Therefore, I suspect that forcing http on the front-end is NOT going to be the solution I'm looking for. As always, I appreciate your help! :slight_smile:
PS--I discovered the dm_prevent_redirection_for_ssl hook, but it appears to not be called from where I need it to. Specifically, if you're in the Divi builder and you click the eyeball preview icon, it's using the mapped domain, prepending https, and then the browser complains that the SSL cert doesn't match the server name, because the mapped domain doesn't have a cert, only the wildcard for the network.