title: Deny from all in subdirectory htaccess not overriding file rules in root htaccess
body: <p>I've got a situation where I'm trying to deny access to all files in a subdirectory of my website.  I have added an htaccess file to this subdirectory and added a deny from all directive to it.  However, I also have an htaccess file in the site root, which allows specific file types, and it seems like these file types are still accessible in the subdirectory even though I no longer want them to be.  I have a workaround for this (see below), but I feel like there must be a better way.  Here are my two htaccess files:</p>
  
  <p>Root .htaccess</p>
  
  <pre><code># Deny access to everything by default
  Order Deny,Allow
  deny from all
  
  # Allow access to html files
  &lt;Files *.html&gt;
      allow from all
  &lt;/Files&gt;
  </code></pre>
  
  <p>Subdirectory .htaccess</p>
  
  <pre><code># Deny access to everything
  deny from all
  </code></pre>
  
  <p><strong>Workaround:</strong></p>
  
  <p>Subdirectory .htaccess</p>
  
  <pre><code># Deny access to everything
  Order Allow,Deny
  deny from all
  &lt;Files *.*&gt;
      deny from all
  &lt;/Files&gt;
  </code></pre>
  
  <p>This does what I want, but I feel like there should be a way to make the deny from all statement work by itself.  Does anyone know how?</p>