I've purchased multi domain SSL certificate and have spent hours trying to get it to work how I want with a test domain I own before I set it up on the main domain I purchased it for.
I have an Android app linked to the main domain which at the moment doesn't have a certificate attached to it.
What I want to be able to do so as not to break the app for every user is apply a certificate to the following domains:
Making www.example.com an https connection will break the app for all users so I need to be able to set up the .htaccess file to redirect all www.example.com to http://www.example.com (not https) and then redirect the other two sub domains app.example.com and forums.example.com to https://app.example.com and https://forums.example.com that way I can launch a new version of the app that sends data to https://app.example.com and the old versions of the app will still work as they'd be sending data to the version without https. The app currently sends data to http://www.example.com/app/
Is this possible? How would I write the .htaccess file to do 3 types of redirects please?
It's starting to feel like the easiest option I have is to purchase a new domain for the app and forum to run on, and keep the old one for information about the app. This way the old versions of the app will continue to connect to the old domain with an unsecure connection.
I can't close or delete the post. In the end I've gone with purchasing two extra domains
exampleserver.com (this will be the domain the new version of the app uses)
both will have SSL applied to them.
The original domain example.com will not have an SSL certificate applied to it so the old versions of the app will continue to work as normal but I will start deactivating older versions over time so that eventually everyone will be connecting to the new domain with a secure connection.