HTTP to HTTPS redirection
From VcPanel Enterprise : VPS Control Panel
If you installed SSL for vcPanel, then you can make a force full redirection from HTTP to https as follows, If you are using API module like whmcs modules, please contact us to get an https module for it.
Create a .htaccess file as follows,
# touch /usr/local/vcpanel/htdocs/.htaccess # chown vcpanel.vcpanel /usr/local/vcpanel/htdocs/.htaccess
Now copy the following contents to /usr/local/vcpanel/htdocs/.htaccess make suer you need to change the url name vcpanel.mydomain.net
RewriteEngine On
RewriteCond %{SERVER_PORT} 9966
RewriteRule ^(.*)$ https://vcpanel.mydomain.net:9967\/$1 [R,L]
