I need to redirect two users to two different subdirectories of domain.com based on their usernames via .htaccess.
Here's an example of what I'm looking to do:
01. user goes to domain.com (the homepage)
02. user is prompted to enter username/password via .htaccess
03. if(username1) redirect to domain.com/1, based on successful .htaccess login info
04. if(username2) redirect to domain.com/2, based on successful .htaccess login info
My hope is to be able to achieve this simply through .htaccess, if possible.
If this cannot be achieved via .htaccess, what mechanism can be used? Here are the technologies I have access to:
02. Platform Type: Debian
03. MySQL Version: 5.0.77
04. Perl Version: 5.8.8
05. PHP Version: 5.2.5
07. other Perl mods
08. PEAR mods
My preference would be to do this via .htaccess, if possible. I have programming experience via education, but not much real-world experience with it. I can go with another solution, but if it's in-depth, I'll need some help getting through it.