we have activated ssl to one of our website below is the redirecting code we are using in .htaccess
RewriteEngine On
RewriteCond %{ENV:HTTPS} !=on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
redirection works fine with home page, but internal pages do not redirect they are accessible in both version with https and with http