RewriteEngine On
RewriteCond %{HTTP:X-HTTPS} !1
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
RewriteEngine On
RewriteCond %{HTTP:X-HTTPS} !1
RewriteCond %{HTTP_HOST} ^cms1.domain.ru$
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]