zigxter
13 Sep 2006, 01:21 PM
I recently took charge of a website that I have to admin and redesign that needs a password protected area for about 2 pages. I'm trying to use htaccess and the prompt box comes up but it won't accept my password! I should mention that I only have FTP access to the site and don't know anything about the services provided by the host. I pretty much got the login info from a guy who got it from the original founder. Basically, I created a folder in root (phi) and put the .htaccess and .htpasswd in there.
.htaccess:
AuthUserFile /phi/.htpasswd
AuthGroupFile /dev/null
AuthName "Password Protected Area"
AuthType Basic
<limit GET POST>
require valid-user
</limit>
.htpasswd:
phi:dD26RnoqO7yTs
(user name and directory are both called 'phi')
.htaccess:
AuthUserFile /phi/.htpasswd
AuthGroupFile /dev/null
AuthName "Password Protected Area"
AuthType Basic
<limit GET POST>
require valid-user
</limit>
.htpasswd:
phi:dD26RnoqO7yTs
(user name and directory are both called 'phi')