Posted By

ReeceMarsland on 10/29/09


Tagged

file download apache


Versions (?)

htaccess force file download


 / Published in: Apache
 

  1. <FilesMatch "\.(?i:doc|odf|pdf|rtf|txt)$">
  2. Header set Content-Disposition attachment
  3. </FilesMatch>

Report this snippet  

You need to login to post a comment.