I have a website running on a dedicated server (single IP) on apache. Multiple domains are pointed to the website . For ex: sub.abc.com, sub.bcdaf.com
I have now purchased a single SSL certificate for one of the domains (sub.abc.com). Only SSL only works when user accesses https://sub.abc.com
I want to force users to https when they access http. And by default, when they access sub.abc.com, it should go to https://sub.abc.com . How can i do this via htaccess?
Please note that the https only works for sub.abc.com and should forcing users should happen only for sub.abc.com