Hi all,
I need to set up an .htaccess file in a root folder that requires a username and a password, and will direct the user to a different folder depending on the username and password entered.
E.g.:
This is so that I can have multiple folders and multiple users, but only need to provide them with one common link.
Does anyone know if and how this can this be done? Thanks for reading this.
I need to set up an .htaccess file in a root folder that requires a username and a password, and will direct the user to a different folder depending on the username and password entered.
E.g.:
- The user goes to www.example.com/
- They enter their username (bobsmith) and password (923r9w8c2w)
- They are redirected to www.example.com/bobsfolder/
- If a user goes to www.example.com/bobsfolder/ directly, they are prompted for a user name and password BUT do not have to re-enter it if they have already.
This is so that I can have multiple folders and multiple users, but only need to provide them with one common link.
Does anyone know if and how this can this be done? Thanks for reading this.
Comment