.htaccess redirects won't all work on Lite Speed

#1
Hi all,
Have spent 3 days trying to get all url redirects to HTTPS to work but no matter what i try i cant get all urls to redirect to https://www.domain.com have looked high and low and tried 100 different ways without luck. Any help would be great!

http://www.domain.com to https://www.domain.com (not working) redirects to www.domain.com but not to https
http://domain.com to https://www.domain.com (Not Working) redirects to domian.com but not back to http
domain.com to https://www.domain.com (Working)
www.domain.com to https://www.domain.com (working)

I have tried both of the below with the same issues not all redirect
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]
and
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$ https://www.domain.com%{REQUEST_URI} [R,L]
 

NiteWave

Administrator
#5
what's the current issue ? redirect still now work? what is CWP ? in your first post, not mention anything about 404 error page ?
 
#8
Ok i will have to get in touch with CWP staff as they did the configuration of LiteSpeed so im not sure where/ what they did. Thank you for your help!
 
Top