I have to redirect a domain from http to https. Here's the old .htaccess file:
RewriteEngine on
RewriteCond %{http_host} !^www.example.com$ [nc]
RewriteRule ^(.*)$ http://www.example.com/$1 [r=301,nc]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
RewriteRule ^index\.html$ http://%{HTTP_HOST}/ [R=301,L]
RewriteRule ^tutorial.html$ /how-to-use.html [R=301]
After installing SSL, how can I change this .htaccess file so that url auto redirect to https? Thanks!