Fixing HTTPS for HTML Website Using GoDaddy Shared Hosting
I setup a basic HTML website using a domain purchased at GoDaddy and hosted at my GoDaddy shared hosting plan.
I setup a Let'sEncrypt security certificate and applied to the website.
The default force https setting with GoDaddy Shared Hosting cPANEL was not working.
I edited the htaccess file to include the following code in order to fix it:
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:CF-Visitor} !{"scheme":"https"}
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
My htaccess file only had rewrite conditions using Wordpress, so adding the additional code fixed it....