Force HTTPS 🔐

Security is important especially now that browsers are informing humans when a website is insecure. I found a small hack to make this wordpress site of mine use HTTPS certificate issued by LetsEncrypt.

I host behind a cpanel, so I just went to my public_html folder and added this to the .htaccess file

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https:your_domain_here/$1 [R,L]

I hope this helps you 🙂