Redirect http to https

#2
I'm looking for a way to redirect all my traffic from http to https.
How do you do it please ? I'm stuck :confused:
This works for me
Code:
RewriteCond %{HTTP_HOST} ^twowheeldemons.com$ [NC]
RewriteRule ^(.*)$ https://twowheeldemon.com/$1 [R=301,L]
     
RewriteCond %{HTTP_HOST} ^www.twowheeldemon.com$ [NC]
RewriteRule ^(.*)$ https://twowheeldemon.com/$1 [R=301,L]
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$ https://twowheeldemon.com%{REQUEST_URI} [R,L]
 
Top