title: Set Content-Disposition header to attachment only on files in a certain directory?
body: <p>I've got this this rule in my htaccess file to force linked files to download rather than open in the browser:</p>
  
  <pre><code>&lt;FilesMatch "\.(gif|jpe?g|png)$"&gt;
    ForceType application/octet-stream
    Header set Content-Disposition attachment
  &lt;/FilesMatch&gt;
  </code></pre>
  
  <p>Is there a way to alter the <code>RegExp</code> so it only applies to files in a certain directory?</p>
  
  <p>Thanks</p>