Navigate to your desired website in CyberPanel.
Then open the management dashboard of that website.
Scroll down to File Manager. (It will open in another tab)
Double click on public_html
Locate .htaccess
Right click on .htaccess
Click on Edit
Wait for the screen to load your .htaccess, it should look like this:
Simply add these 3 lines in before the line: # BEGIN LSCACHE in .htaccess file:
RewriteCond %{HTTPS} !on RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://%{SERVERNAME}%{REQUESTURI} [R,L]Remember to click on Save Changes.
Save Changes.
Close the Chrome tab.
In your main CyberPanel dashboard: Server > Server Status > LiteSpeed Status
Reboot LiteSpeed.
Wait for it to indicate that it has been successfully rebooted, i.e. Action Successful.
Clear your browser's cache.