lee101
VIP Member
Hi, i have been trying to get a certain directory of my web server password protected, and have found the most efficent way of doing this is using .htaccess
I have read online tutorials from www.freewebmasterhelp.com/tutorials/htaccess/3 but and tried to create the files but it simply won;t let me login
In the directory, /protected , which i want protected i have put a .htacess file containing the following:

I cannot seem to figure this problem out and i am sure i have got everything correct, unless there is just something simple.
So please help me
Thanks, Lee
I have read online tutorials from www.freewebmasterhelp.com/tutorials/htaccess/3 but and tried to create the files but it simply won;t let me login
In the directory, /protected , which i want protected i have put a .htacess file containing the following:
then in a folder called ht i have put a file called .htpasswd which contains the following:AuthType Basic
AuthUserFile /ht/.htpasswd
AuthName "Login"
require valid-user
When i go to the adress (192.168.0.2/protected) the login screen appears, then i enter the username and password but this screen just keeps popping up, and will not let me inlee:lee

I cannot seem to figure this problem out and i am sure i have got everything correct, unless there is just something simple.
So please help me
Thanks, Lee