Htaccess and https redirect — can someone confirm

I have the certificate installed and if a user types in the full https:// it is working but I want direct all pages to https.

I’m thinking in the htaccess—right below the

RewriteEngine On

all I need to do is add

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.mysite.com/$1 [R=301,L]

Yes? No? Maybe? (the htacess file make me nervous)

Turns out it was that easy. For me anyway.

Well done :muscle:
Htaccess stress me a bit too.