Need Help with .htaccess (confused)
Hey folks,Im completly confused over .htaccess and .htpasswd. Right here we go, i want to protect a directory on my server (which is connected to my network) called jcp. To access the folder online it would be www.mydomain.com/jcp/ now is that what i add to the .htaccess file or would it be C:\Appserv\www\jcp? <--that being the location on the server.
heres what i have in the .htaccess:
AuthType Basic
AuthUserFile C:/AppServ/.htpasswd
AuthName "Private Area"
require valid-user
Is that right? When i place .htaccess in the jcp directory, then try to access via the internet i get the prompt for username and password, i enter them but it wont let me in! I used an online .htpasswd creator, and it encoded the passoword for me!
Any ideas people?
