Skip to content

Instantly share code, notes, and snippets.

@simplistik
Created March 8, 2012 16:22
Show Gist options
  • Save simplistik/2001897 to your computer and use it in GitHub Desktop.
Save simplistik/2001897 to your computer and use it in GitHub Desktop.
htaccess: Force PDF download
<FilesMatch "\.(?i:pdf)$">
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