How to add HTTPS to your website for free in 10 minutes, and why you need to do this now more than…
Ayo Isaiah
7.1K26

If your site is running on Wordpress or even HTML for that matter, simply go into your C-PANEL ( on your host/server ), access your “ .htaccess “ file, go to EDIT and simply place this code inside :

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0–9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0–9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0–9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]

This is all you have to do and your site will automatically be served as a

“ https “ . This works instantly — promise :)