Forum Moderators: phranque

Message Too Old, No Replies

.htaccess redirect according to .htaccess username (or group)

is it possible?

         

jsruok

10:37 am on Feb 2, 2006 (gmt 0)

10+ Year Member



Can .htaccess protect a directory (example.com/protected/) for two users (user1 and user2) and redirect them after login (user1 to example.com/protected/dir1/, and user2 to example.com/protected/dir2/)?

extras

5:47 pm on Feb 2, 2006 (gmt 0)

10+ Year Member



Yup. It can be done.
You just need to check %{REMOTE_USER}.

jsruok

6:59 am on Feb 3, 2006 (gmt 0)

10+ Year Member



Yup, that does it. Thanks! :-)