# use entered domain RewriteCond %{HTTPS} !=on RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L] # redirect to another domain, which use SSL RewriteCond %{HTTPS} !=on RewriteRule .* https://somessl.example.com%{REQUEST_URI} [R,L]