Forum Moderators: phranque

Message Too Old, No Replies

Redirection to user's home directory by athentication

         

glx51mm

3:38 pm on Apr 4, 2004 (gmt 0)



Hello everyone,
I've set up a personal site on apache 2.0 and everything including authentication, where needed seems, to be working fine. However, I can not find if and how is it possible to direct a user to his home directory after authenticating himself. What I want is when a user puts his username and pass to be automatically redirected to www.domain.com/~username. I've been reading the documentation on various modules and directives with no success so far. Thanks a lot in advance for you help and please let me know if i should provide more information about what i want to do.

jdMorgan

11:44 pm on Apr 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



glx51mm,

Welcome to WebmasterWorld [webmasterworld.com]!

You might be able to use RewriteCond in mod_rewrite to test the %{REMOTE_USER} server variable and redirect using that variable as a back-reference. Be aware that authentication takes place before mod_rewrite rules in .htaccess files are processed.

Jim