I want to forward the cpanel and webmail ports using .htaccess as follows:
www.mydomain.com:2082 -> www.sharedserver.com:2083
I tried the following but it doesn't seem to work:
RewriteCond %{HTTP_HOST} ^(www.mydomain.com):2082$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www.mydomain.com):2083$ [NC]
RewriteRule ^(.*)$ https://www.sharedserver.com:2083 [L,R=302]