Created
June 4, 2018 21:40
-
-
Save ngstigator/90698b87f0510d6b30bcfc832c856283 to your computer and use it in GitHub Desktop.
Drupal 7 .htaccess password protect custom directory
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
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !=/favicon.ico | |
# CUSTOM - make node export download directory password protectable | |
RewriteCond %{THE_REQUEST} !/sites/default/files/CUSTOM/.* | |
RewriteRule ^ index.php [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment