Hello forums,

How do I force SSL for a particular domain currently I have

Code HTML4Strict:
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 is working, however I have several add on domains on my hosting and when I try to access the other add-on domains, the add on domains are also forced to use SSL .

I tried this:

Code HTML4Strict:
RewriteCond %{HTTP_HOST} ^mydomain\.org$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.org$
RewriteRule ^/?$ "https\:\/\/www\.mydomain\.org\/" [R=301,L]

But it is giving me an infinite loop.