How to force SSL for a specific domain I currently have
RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
This works, however, I have several additional domains on my hosting, and when I try to access other additional domains, the additional domains are also forced to use SSL.
I tried this:
RewriteCond %{HTTP_HOST} ^exampledomain\.org$ [OR] RewriteCond %{HTTP_HOST} ^www\.exampledomain\.org$ RewriteRule ^/?$ "https\:\/\/www\.examplemydomain\.org\/" [R=301,L]
But that gives me an endless loop.
Stone deft
source share