title: port forwarding using .htaccess
body: <p>I want to forward the cpanel and webmail ports using .htaccess as follows:</p>
  
  <p>www.mydomain.com:2082 -> www.sharedserver.com:2083</p>
  
  <p>I tried the following but it doesn't seem to work:</p>
  
  <pre><code>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]
  </code></pre>