switch from HTTP to HTTPS

Get Free TLS / SSL Certificate
from Let's Encrypt with no coding.

Download

No coding.
Simple to follow.
Under 10 minutes.

The above YouTube guide can help you with how to make website secure by obtaining and installing free Let's Encrypt TLS/SSL certificate.
How to redirect website from HTTP to HTTPS.
How to convert PEM files to the same certificate.crt, ca_bundle.crt and private.key files donwloaded from SSL For Free and ZeroSSL.

Text to save in .htaccess file:

## HTTP to HTTPS REDIRECT ##
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NC]
</IfModule>