Login to the OpenLiteSpeed admin console and then select the virtual host of the site, which you want to redirect from HTTP to HTTPS. Now navigate to the Rewrite section and edit Rewrite Rules and add these two lines: RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]