Skip to content

Instantly share code, notes, and snippets.

@vojtasvoboda
Created February 19, 2016 13:08
Show Gist options
  • Save vojtasvoboda/76754863a5fd00641151 to your computer and use it in GitHub Desktop.
Save vojtasvoboda/76754863a5fd00641151 to your computer and use it in GitHub Desktop.
Force file download
<IfModule mod_headers.c>
<FilesMatch "\.(mp4|MP4)$">
ForceType video/mp4
Header set Content-Disposition "attachment"
Allow from all
</FilesMatch>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment