esedic
6/22/2015 - 7:20 AM

Force file download with .htaccess

Force file download with .htaccess

<FilesMatch "\.(?i:doc|docx|xls|xlsx|pdf|pps|ppsx)$">
  ForceType application/octet-stream
  Header set Content-Disposition attachment
</FilesMatch>