Problem in htaccess password protection

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sunil_23413
Forum Newbie
Posts: 10
Joined: Thu Mar 12, 2009 5:43 am

Problem in htaccess password protection

Post by sunil_23413 »

I want to apply htaccess password protection to one of my my site http://manjotone.freehostia.com .
When I go to above url it demands a username/password. Even if I fill correct username/password (test/test) it still does not show the site and the login box appears each time whether I fill correct or wrong username/password. How can I resolve this issue?
The content of htaccess file is
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/www/manjotone.freehostia.com/.htpasswd
AuthGroupFile /dev/null
require valid-user

And the content of htpasswd file is
test:VKDgrEqD7TJBM

I simply upload these files through FTP where my site exists .please suggest me what should I do to overcome this issue.
Post Reply