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

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -