Can't get redirects working

#1
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:
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]
Someone please point me in the right direction.
 

Pong

Administrator
Staff member
#2
It should work. Did you place it in docroot .htaccess?
maybe you need RewriteEngine On in the front?

From plesk admin, Simplly switch to apache to see if it works or not. As far as apache works, LSWS should work.
 
#3
It should work. Did you place it in docroot .htaccess?
maybe you need RewriteEngine On in the front?

From plesk admin, Simplly switch to apache to see if it works or not. As far as apache works, LSWS should work.
Thought it was litespeed but it didn't work in apache either. Don't know what went wrong but I reinstalled the server gheghe as the site wasn't done anyway :) put now I can't login the web console, making new thread.
 
Top