Here's what I use in my .htaccess file.
There's no specific domain name required. It's not my code but it works well in redirecting any 'normal' url to the https site.#Rewrite everything to https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
my-site.com redirects to https:my-site.com
www.my-site.com redirects to https:my-site.com
http://my-site.com redirects to https:my-site.com
etc.
Bookmarks