title: Redirect SSL Short Name to FQDN
body: <p>I purchased an SSL cert for an internal web server and it works only if I use the server's FQDN. Is there a way using a rewrite rule in httpd.conf to accomplish this? I already have two rules, and they are:</p>
  
  <pre><code>RewriteCond %{HTTP_HOST}   !^web2\.internal\.domain\.com [NC]
  RewriteCond %{HTTP_HOST}   !^$
  RewriteCond %{SERVER_PORT} ^80$
  RewriteRule ^/(.*)         https://web2.internal.domain.com/$1 [L,R]
  
  RewriteCond %{HTTP_HOST}   ^web2\.internal\.domain\.com [NC]
  RewriteCond %{HTTP_HOST}   !^$
  RewriteCond %{SERVER_PORT} ^80$
  RewriteRule ^/(.*)         https://web2.internal.domain.com/$1 [L,R]
  </code></pre>
  
  <p>I use these to force http to https, one for short name and one for FQDN.</p>
  
  <p>Thanks</p>