How to switch your website to free HTTPS using Let's Encrypt certificates

20 March 2016

Add the certificate

Sign in to cPanel of your webhost. Under security - click 'Let's Encypt' - Click issue. letsencrypt

Redirect any HTTP request to your site to HTTPS

In an FTP program (e.g. WinSCP on Windows) connect to your site and browse to public_html. Edit the .htaccess file, add the lines below to the very bottom, save it, refresh your site to see that it worked.

# REDIRECT HTTP TO HTTPS
RewriteEngine On
RewriteCond %{ENV:HTTPS} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]