PDA

View Full Version : .htaccess directory access



CoolD78
03-03-2008, 06:56 PM
I want to have 2 different usernames and passwords in my .htpasswd file and make the users go to a separate directory on the website using .htaccess.

example:

User "redteam" visits "www.domainname.com" and types in their username and password. This will send them to "www.domainname.com/redteam"

User "blueteam" visits "www.domainname.com" and types in their username and password. This will send them to "www.domainname.com/blueteam"

Is this possible with one .htaccess file and one .htpasswd file?