Forum Moderators: phranque
AuthName "Script"
AuthType Basic
AuthUserFile "/home/path/to/.htpasswd"
require valid-user RewriteCond %{REQUEST_URI} !^/script/
# Quit processing rules here if the request is for anything in the /script/ subdirectory
RewriteRule ^script/ - [L]
-or-
# Skip the next four rules if the request is for anything in the /script/ subdirectory
RewriteRule ^script/ - [S=4]