Htaccess and https redirect — can someone confirm


#1

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)


#2

Turns out it was that easy. For me anyway.


#3

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