Hello lovely boys and girls, I'd appreciate some help with this little bump I'm having.
I use WordPress for all my primary and addon domains, except for one of my sites, which is a static html + css + js site.
In cPanel I went to 'Domains' and turned on 'Force HTTPS Redirect' for my primary domain.
All my WordPress addon domains correctly inherit the HTTPS status from my primary domain.
However, the addon domain that has the static site is not redirecting to HTTPS.
Upon checking the htaccess for that site, this is the code that appears:
It should therefore work, but it isn't. I have a feeling that to solve the problem I have to manually edit or include something in my static site's index.html or css files but I don't really know what to do.
Please help and thank you in advance.
I use WordPress for all my primary and addon domains, except for one of my sites, which is a static html + css + js site.
In cPanel I went to 'Domains' and turned on 'Force HTTPS Redirect' for my primary domain.
All my WordPress addon domains correctly inherit the HTTPS status from my primary domain.
However, the addon domain that has the static site is not redirecting to HTTPS.
Upon checking the htaccess for that site, this is the code that appears:
Code:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Header always set Content-Security-Policy "upgrade-insecure-requests;"
Please help and thank you in advance.