Created
July 31, 2019 05:27
-
-
Save corysolovewicz/003aa85c9b98311d1c2631c08a3e2f45 to your computer and use it in GitHub Desktop.
Apache mod_rewrite to change URL mapping on the fly and protect downloadable files using access control
This file contains 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
RewriteEngine on | |
RewriteRule ^/download/(.*)$ /download.asp?file=$1 [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment