If you want to redirect your visitors to the secure version of your site, you can use the following example in your .htaccess file. It will force all visitors viewing your site with http > https.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
Â
Replace example.com with your domain name, once done visitors to http://example.com will be redirected to https://example.com.