Forum Moderators: phranque
When using per-directory override files (.htaccess) you need to use the Apache
htpasswd utility to create and edit the password file. Here is a must-read doc from Apache to get you on track:
[httpd.apache.org...]
We can't give you the exact code, because it depends on *exactly* what you want and need to do. Also, we cannot [webmasterworld.com] write "code on demand" here -- There are simply too many requests for the limited number of volunteer contributors to handle.
Here's a good place to start: Authentication, Authorization, and Access Control [httpd.apache.org]
Jim