Hi guys, I've got some issues with the .htaccess that I just can't get to work. Hope someone could solve this one.
I have a SSL certificate on the 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, that since 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?