title: mod_rewrite vs. redirect permanent
body: <p>just a quick question! i am forcing my site to redirect from http to https. The way im doing it is in my httpd.conf file, i have in my virtual hosts a</p>
  
  <pre><code>redirect permanent / https://sitename
  </code></pre>
  
  <p>everything works fine and I got that setting from apache's wiki site! but my question is, which is faster the redirect permanent or using the mod_rewrite way?</p>
  
  <p>Ive seen in some sites suggesting to use something like:</p>
  
  <pre><code>RewriteEngine On 
  RewriteCond %{SERVER_PORT} 80 
  RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
  </code></pre>
  
  <p>but nobody explains if that way gets better performance than using redirect permanent or not? my site gets 1000+ visits per day and handles large files!</p>
  
  <p>basically what is the difference between the two? I just want to make sure i am optimized for best performance ;)</p>
  
  <p>PS. everything is done in my httpd.conf and NOT in .htaccess ;)</p>