title: Apache redirection with port
body: <p>I have just reinstalled my apache server on debian 8
  But I can not go from "<a href="http://IP" rel="nofollow noreferrer">http://IP</a>: 8080" to "<a href="https://IP:8080" rel="nofollow noreferrer">https://IP:8080</a>"
  Here is my redirection</p>
  
  <pre><code>RewriteCond %{HTTPS} off
  RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  RewriteCond %{HTTP_HOST} !^www\. [NC]
  RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  </code></pre>