Report this

What is the reason for this report?

Openlitespeed: URL not redirecting to HTTPS but domain is

Posted on March 18, 2021

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 %{SERVER_PORT} 80 RewriteRule ^(.)$ https://example.com/$1 [R,L] RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{HTTP:X-Forwarded-Proto} !https rewriteRule ^(.)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

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

Can someone please help?



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!

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.

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

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.