how to redirect https://domain.com to https://www.domain.com?
This works with OpenLiteSpeed
RewriteCond %{HTTP_HOST} ^example.com[NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]
Where do I add or modify this code?
Go to your Website in CyberPanel and scroll down. You’ll see “Rewrite Rules” … this is where you change this.