apache - I want to htpasswd protect a single file not files in subdirectories -


i have .htpasswd file in root of domain , .htaccess file should protect single index.php file. unfortunately appears asif index.php files in subdirectories protected. possible make work on single file , leave files in subdirectories untouched?

this current .htaccess file.

<files "index.php"> authname "users zone" authtype basic authuserfile /home/deb69824/domains/.htpasswd require valid-user </files> 

include slash, indicates exact location of file, e.g. in root of directory?

<files "./index.php"> authname "users zone" authtype basic authuserfile /home/deb69824/domains/.htpasswd require valid-user </files> 

Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -