Skip to content

Instantly share code, notes, and snippets.

@NapoleonWils0n
Created October 30, 2012 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NapoleonWils0n/3983805 to your computer and use it in GitHub Desktop.
Save NapoleonWils0n/3983805 to your computer and use it in GitHub Desktop.
apache: match files force download
<FilesMatch "\.(?i:pdf|mov|mp4|m4v)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment