.htaccess login and redirect based on username and password

夙愿已清 提交于 2021-01-27 21:59:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!