htaccess force file download


/ Published in: Apache
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <FilesMatch "\.(?i:doc|odf|pdf|rtf|txt)$">
  2. Header set Content-Disposition attachment
  3. </FilesMatch>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.