Force HTTPS and WWW for domain and only HTTPS for subdomains HTACESS
问题 I've been trying to configure this for my website, but not being able to. I use to have a cond on my .htaccess to force www for the main domain and nothing for subdomains, but since I got a SSL, I'm having some problems. It's a wildcard SSL. What I need is force HTTPS:// WWW on the main domain, and HTTPS:// on subdomains. I.E: http://www.domain.com -> https://subdomain.domain.com Is there any rule for that? Thanks! EDITED Now I'm using like Jon posted RewriteEngine On RewriteCond %{HTTPS} !