title: Can't access static files where php_flag engine off
body: <p>I have a Laravel web application that allows people to upload their files to an <code>uploads</code> directory.
  I want to allow any file types and names but disallow executing them (just static file upload/download) so I created a <code>.htaccess</code> file:</p>
  
  <p>/public_html/uploads/.htaccess:</p>
  
  <pre><code>php_flag engine off
  </code></pre>
  
  <p>But when I try to access the stored files (e.g. /uploads/photo.jpg) , Laravel comes up with a <code>NotFoundHttpException</code>.
   If I put a <code>#</code> before the line, I can access files, but then php scripts execute.</p>
  
  <p>And here is the Laravel's htaccess file</p>
  
  <p>/public_html/uploads/.htaccess:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      &lt;IfModule mod_negotiation.c&gt;
          Options -MultiViews
      &lt;/IfModule&gt;
  
      RewriteEngine On
  
      # Redirect Trailing Slashes If Not A Folder...
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)/$ /$1 [L,R=301]
  
      # Handle Front Controller...
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^ index.php [L]
  
      # Handle Authorization Header
      RewriteCond %{HTTP:Authorization} .
      RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  &lt;/IfModule&gt;
  </code></pre>