title: AllowOverride all causes error 403
body: <p>I recently created a virtual host with WampServer (Version 2.4) so I can access my local website with the url <a href="http://yannbergonzat.local" rel="nofollow">http://yannbergonzat.local</a> :</p>
  
  <pre><code>&lt;VirtualHost *&gt;
      ServerName yannbergonzat.local
      DocumentRoot "F:\Projets\Web\yann"
      DirectoryIndex index.php
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>And here is the Directory tag from httpd.conf :</p>
  
  <pre><code>&lt;Directory /&gt;
      Options Indexes FollowSymLinks
      AllowOverride all
      Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>This website is made with Symfony2, so yannbergonzat.local leads to a folder. If you want to access the actual website, you have to go to yannbergonzat.local/web/app.php .</p>
  
  <p>I created a .htaccess file so the website can be seen with yannbergonzat.local :</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ web/$1 [QSA,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>And now is the problem. Depending on the value of AllowOverride, there are errors.</p>
  
  <h2>When AllowOverride is set on "all"</h2>
  
  <p>The .htaccess file is read, the site can be accessed on yannbergonzat.local, but the resources (stylesheets, javascripts) which are in another folder cannot be accessed (error 403)</p>
  
  <h2>When AllowOverride is set on "none"</h2>
  
  <p>The .htaccess file is <strong>not</strong> read, the site can <strong>not</strong> be accessed on yannbergonzat.local (it shows the content of the folder), you have to write the entire url (yannbergonzat.local/web/app.php), but the resources (stylesheets, javascripts) which are in another folder <strong>can</strong> be accessed.</p>
  
  <p>What should I do to have the website on yannbergonzat.local with the resources from other folders working fine ?</p>