Forum Moderators: coopster

Message Too Old, No Replies

.htaccess multiple users help

Howto enable multi user (groups) environement

         

sante

9:33 am on Apr 18, 2006 (gmt 0)

10+ Year Member



Hi, I have protected an area of my website (/protected) with a password and added a few users to access this site.
My question is, how can I set it up this way that say 10 users who are part of group1 get redirected to a certain location within that protected folder and another 10 ppl part of group2 get redirected to another file withing the same "/protected" folder?
Any feedback gladly appreciated!
Regards,
Jason

hakre

11:30 am on Apr 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi sante,

welcome to webmasterworld. cgi or module usage? or even simpler: how about passing different urls to the different groups?

whoisgregg

1:31 pm on Apr 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Take a look at what is in these variables in those password protected pages:

echo 'User: '.$_SERVER['PHP_AUTH_USER'].' Password:'.$_SERVER['PHP_AUTH_PW'].' Type:'.$_SERVER['AUTH_TYPE'];

Are they populated correctly?