i need help on where to put the .htaccess file and the .htpasswd.?
I have a .htaccess file
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /Web/KerliTv/.htpasswd
AuthGroupFile /dev/null
require valid-user
and a .htpasswd
user:password
user:password
user:password
The domain is kerlikoiv.com, and the directory i need to password protect is http://kerlikoiv.com/KerliTv, and i need the /KerliTv and all subdirectories protected. Im not sure where im going wrong, but can someone tell me where i should place the htaccess and htpasswd files? I’ve tried a lot of different places, but none seem to work.
I have a .htaccess file
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /KerliTv/.htpasswd
AuthGroupFile /dev/null
require valid-user
and a .htpasswd
user:password
user:password
user:password
The domain is kerlikoiv.com, and the directory i need to password protect is http://kerlikoiv.com/KerliTv, and i need the /KerliTv and all subdirectories protected. Im not sure where im going wrong, but can someone tell me where i should place the htaccess and htpasswd files? I’ve tried a lot of different places, but none seem to work.
EDITED!!!!
I have a .htaccess file
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /Web/KerliTv/.htpasswd
AuthGroupFile /dev/null
require valid-user
and a .htpasswd
user:password
user:password
user:password
The domain is kerlikoiv.com, and the directory i need to password protect is http://kerlikoiv.com/KerliTv, and i need the /KerliTv and all subdirectories protected. Im not sure where im going wrong, but can someone tell me where i should place the htaccess and htpasswd files? I’ve tried a lot of different places, but none seem to work.
Since .htaccess file allows us to make changes on a per-directory basis, the following are valid places to put the .htaccess file in:
/.htaccess [placing in root folder of the site]
/content/.htaccess [placing in content folder]
/content/html/images/.htaccess [in the images folder]
For password protection, it goes in the directory to be protected.
See: http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples/
Ron
Since .htaccess file allows us to make changes on a per-directory basis, the following are valid places to put the .htaccess file in:
/.htaccess [placing in root folder of the site]
/content/.htaccess [placing in content folder]
/content/html/images/.htaccess [in the images folder]
For password protection, it goes in the directory to be protected.
See: http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples/
Ron
References :