Force SSL HTTPS for subdomain with .htaccess
snippet in htaccess

Force SSL HTTPS for subdomain with .htaccess

user7957

  # Redirect HTTP to HTTPS
  RewriteCond %{HTTPS} off
  RewriteCond %{HTTP:X-Forwarded-Proto} !https
  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]