having trouble with .htaccess and .htpasswrd
Posted by: lincoln09 (---.carolina.res.rr.com)
Date: November 28, 2007 01:51AM

i just recently started using WAMP on windows xp, so i really dont know that much, and i want to password protect the entire server from the root drive, so i made a .htpasswrd file, and placed it in my c:/wamp/pwd folder. i then created a .htaccess file and placed it in my c:/wamp/www folder, so that it prompts a password for when you try to get into any subfolder. the .htaccess file looks like this:

AuthName "Restricted Area"
AuthType Basic
AuthUserFile c:/wamp/pwds/.htpasswd
AuthGroupFile /dev/null
require valid-user

when i try to access the server, it prompts for a password, but when i type in the right information, another login prompt pops up again, and loops forever. if i type in the wrong info though, it brings me to an error. what am i doing wrong with this?

Options: ReplyQuote
Re: having trouble with .htaccess and .htpasswrd
Posted by: yfastud (Moderator)
Date: November 28, 2007 03:08AM

Check your typo since it seems you stored .htpasswd in folder pwd, but put pwds in .htaccess

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.