I am looking to force HTTPS on my site other than the subdomain that I use for the forum. I have an SSL certificate installed in the root domain, but not this forum subdomain. ( http://forum.domain.com )
Here is the code for forced HTTPS:
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
However, it also forces HTTPS on subdomains, making the forum unavailable.
How to create an exclusion rule for this subdomain?
source
share