title: Internal recursion with vhost config & .htaccess
body: <p>I'm trying to set up a web site based on symfony2. Everything is ok, but on a specific server, the way of apache vhosts are set up &amp; the .htaccess on the symfony webroot causes infinite loop.</p>
  
  <p>If someone have a clue to make it work without changing anything in symfony code (because it has to work on other servers). The only things I can modify are vhosts settings &amp; .htaccess.</p>
  
  <p>Here are the confs :</p>
  
  <p>Vhosts (sub domain) :</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{HTTP_HOST}   ^name.domain.fr [NC]
  RewriteRule   ^/(.*)$ /name/web/$1  [L]
  </code></pre>
  
  <p>Symfony2 .htaccess</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ app.php [QSA,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Thanks for help :)</p>