I’ve got some issues with a .htaccess that I just can’t get to work. Hope someone could solve this one.
I have a SSL certificate on the http://www.-domain on an Apache server. I want all http://subdomain.domain.com requests on a specified list of subdomains to redirect to https://www.domain.com/subdomain.
The second problem is I don’t have a wildcard certificate that works on non-www. requests, requests to https://subdomain.domain.com will result in an “Untrusted Connection” alert. So this also has to be solved, but maybe it requires another type of redirect?
What conditions and rules could achieve these two requirements using .htaccess?
Try this rule: