title: Move .htaccess content into vhost, for performance
body: <p>I was wondering if performance can be increased if I move .htaccess file content into a vhost file of apache2? </p>
  
  <p>This is the content of my .htaccess</p>
  
  <pre><code>Options +FollowSymLinks +ExecCGI
  
  &lt;IfModule mod_rewrite.c&gt;
    RewriteEngine On
  
    RewriteCond %{SERVER_NAME} ^([^.]+\.[^.]+)$ [NC]
    RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]
  
    # we check if the .html version is here (caching)
    RewriteRule ^$ index.html [QSA]
    RewriteRule ^([^.]+)$ $1.html [QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
  
    # no, so we redirect to our front web controller
    RewriteRule ^(.*)$ index.php [QSA,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>If doing so is a good idea, where in the vhost declaration should I place above content?</p>
  
  <p>Thanks!</p>