Created
June 23, 2013 14:41
-
-
Save noomz/5845259 to your computer and use it in GitHub Desktop.
Force browser download any file in directory
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
SetEnvIf Request_URI "^.*/([^/]*)$" FILENAME=$1 | |
Header set "Content-disposition" "attachment; filename=%{FILENAME}e" | |
UnsetEnv FILENAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment