SYSTEM INFORMATION | |
---|---|
OS type and version | CentOS Linux 7.9.2009 |
Virtualmin version | 7.1 |
I created a htaccess file and inserted the code from this link (Problem with Virtualmin, Letsencrypt and redirect to https in the .htaccess file - #2 by Diabolico)
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteCond %{HTTP_HOST} ^(?:www.)?(.+)$ [NC]
RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301]
I pasted it into my File Manager area:
However, links to these sites are still not automatically redirected to the HTTPS version.
http://neutralscents.com/
http://www.neutralscents.com/
neutralscents.com
How can I fix this?
Thanks!