Question
Openlitespeed: URL not redirecting to HTTPS but domain is
If i put example.com in address bar it goes to https://example.com
But if i put http://example.com/ it doesn’t redirect to https version.
For some reason all my pinterest links have become http and all my traffic is going there and not the https version.
I have setup the listener and virtual hosts as per this guide in the litespeed web console
https://docs.litespeedtech.com/cloud/images/wordpress/
Also have added these rewrite rules in the virtual host
RewriteCond %{SERVERPORT} 80
RewriteRule ^(.)$ https://example.com/$1 [R,L]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
rewriteRule ^(.)$ https://%{HTTPHOST}%{REQUEST_URI} [R,L]
note: example.com in the above is replaced with my domain, rest is as it is.
Can someone please help?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×