title: htaccess Deny folder and subfolder and subfiles
body: <p>i have a folder and i try to protect it and ALL his content with a password by using a .htaccess file</p>
  
  <p>i know how to protect a file </p>
  
  <pre><code>&lt;Files page.php&gt;
  AuthName "Message" 
  AuthUserFile \www\.htpasswd 
  AuthType Basic
  require valid-user
  &lt;/Files&gt;
  </code></pre>
  
  <p>it works perfecly to protect a file</p>
  
  <p>but it doesn't work for a folder !  </p>
  
  <pre><code>AuthName "Message" 
  AuthUserFile "\www\.htpasswd"
  AuthType Basic
  require valid-user
  </code></pre>
  
  <p>i can try all that i want, the folder is protected but not the subfolders and his subfiles .</p>
  
  <p>for example <code>/order/3213132/file.txt</code></p>
  
  <p><code>/order/</code> is protected but if i write the complete url in my browser i can read the content of <code>file.txt</code></p>
  
  <p>how to protect a folder and ALL his content with a password  without take off the <code>.txt</code> extension ?</p>