问题
Been searching around for a .htaccess code but I just couldn't find the right one. I have a website which is password protected by .htaccess. What I need now is to redirect users (after they login) based on their username and password. ie.
user1 with password:xxx would be redirected to mysite.com/page1, user2 with password:xxx would be redirected to mysite.com/page2 and user3 with password:xxx would be redirected to mysite.com/page3
Can this be done with .htaccess and if so, what the code would be?``
Thank you!
来源:https://stackoverflow.com/questions/7293076/htaccess-login-and-redirect-based-on-username-and-password