I am trying to set up .htaccess using xampp-windows. my website is located at http://127.0.0.1/mysite/index.php and i put both the .htaccess and .htpasswd files in the mysite folder. I need help specifying what directory to find the .htpasswd file on the server. no matter what i put as the address it doesn't find it. also, it doesn't seem to find any of the error pages either, they are both in the same "mysite" dir too. any suggestions? here is my .htaccess text:
ErrorDocument 404 /notfound.html
ErrorDocument 401 /login.html
AuthName "Restricted Site"
AuthType Basic
AuthUserFile /.htpasswd
Require valid-user
thanks for the help!
hgtwn