Gottit working on my server in a folder
www.carlparry.com/gfy/
Quote:
# Set exception for /gfy/index.html and set as variable AdminUri for use later
SetEnvIf Request_URI "^/gfy/index.*$" AdminUri
# Setup the password protection (standard folder protect)
AuthUserFile /home/xxxxxxxxxx/carlparry.com/gfy/.htpasswd
AuthName "GFY - folder protected"
AuthType Basic
AuthUserFile ./.htpasswd
Require valid-user
# Now add the exceptions for matched URL's index.html (not standard)
Order Deny,Allow
Deny from all
Allow from env=AdminUri
Satisfy any
|
Cheers,
Paz.