Openlitespeed: URL not redirecting to HTTPS but domain is

If i put in address bar it goes to But if i put 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

Also have added these rewrite rules in the virtual host

RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.)$$1 [R,L] RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{HTTP:X-Forwarded-Proto} !https rewriteRule ^(.)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

note: in the above is replaced with my domain, rest is as it is.

Can someone please help?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

It might be due to the rewrite, please share your Environment Report: Navigate to LiteSpeed Cache > Toolbox > Report, press the Send to LiteSpeed button, and let us know what it says under “Report Number.” I’ll be able to access the report from here and get some information about your configuration that might be helpful.

May I know if your WordPress Home URL and Site URL start from HTTPS?