Created
July 10, 2014 13:52
-
-
Save mateusneves/652f9a3bf837e5921b4e to your computer and use it in GitHub Desktop.
Force download with .htacces
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<FilesMatch "\.(jpg|zip|avi|pdf|mp3|mp4|doc|ppt|xls|odt|wav|mov|swf)$" > | |
ForceType application/octet-stream | |
Header add Content-Disposition "attachment" | |
</FilesMatch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment