On one of my servers I installed litespeed to test it's speed compared to apache and nginx.
I'm running plesk on an ubuntu server (not a techie really as I have to google everything)
Now I never had any issues with redirecting but ever since I installed litespeed I can't get it to work.
I've added a dozen of different codes and the last one I found on this forum but also not working. To be more clear, it won't go from http to https.
Latest code:
Someone please point me in the right direction.
I'm running plesk on an ubuntu server (not a techie really as I have to google everything)
Now I never had any issues with redirecting but ever since I installed litespeed I can't get it to work.
I've added a dozen of different codes and the last one I found on this forum but also not working. To be more clear, it won't go from http to https.
Latest code:
Code:
RewriteCond %{HTTPS} !on
RewriteCond %{HTTP_HOST} ^www.domain.net$ [NC,OR]
RewriteCond %{HTTP_HOST} ^domain.net$ [NC]
RewriteRule ^(.*)$ https://www.domain.net/$1 [R=301,L]