title: Enable HTTPS using incoming port as RewriteCond
body: <p>Im trying to resend a request using HTTPS when a particular URL is hit. This is my rule, however it does not cause the request to be resent. Any ideas what is wrong with it?</p>
  
  <p>RewriteCond %{SERVER_PORT} 15000</p>
  
  <p>RewriteCond %{REQUEST_URI} ^/securePage$</p>
  
  <p>RewriteRule ^(.*)$ <a href="https://%" rel="nofollow">https://%</a>{SERVER_NAME}%{REQUEST_URI} [NC,R=301,L]</p>
  
  <p>The securePage value is a vanity URL which is supposed to get rewritten when the request is sent for the second time using the new protocol</p>
  
  <p>Thanks, </p>