1
2
3
4
5
6
7
8
9
# NEW VERSION – Suitable for Apache 1.3. Work in IE8, finally.
# Force download certain file types.
<FilesMatch "\.(docx?|txt|rtf|avi|mov|mp[34]|pdf|xls|jpe?g|tiff?)$">
    Header add Content-Disposition "attachment"
</FilesMatch>

# OLD VERSION
# Force download certain file types.
# AddType application/octet-stream .doc .mov .avi .pdf .xls .mp4