Hi,
Sorry if same question already asked many times.
I have web-server OpenLiteSpeed 1.4.50. SSL certificate from Let's Encrypt.
Virtual Host Example > Rewrite > Rewrite Rule
Redirect from http://example.com, http://www.example.com, www.example.com to https://www.example.com work fine and browser shows SSL is good. But when I type https://example.com it shows - connection not private. I have no idea why? Why SSL works for https://www.example.com not work for https://example.com. What setting should i check?
Sorry if same question already asked many times.
I have web-server OpenLiteSpeed 1.4.50. SSL certificate from Let's Encrypt.
Virtual Host Example > Rewrite > Rewrite Rule
Code:
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]