开发者

.htaccess login and redirect based on username and password

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 re开发者_开发问答directed 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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜