.htaccess tutorial

htaccess Elite


Is this possible..? Selective Directory Authentication

Anything not fitting into other categories

Is this possible..? Selective Directory Authentication

Postby boyd1080 » 27 Nov 2008 17:35

Ok, I have been researching this for a while, so I am not even sure if this is possible...

Imagine my folder hierarchy as this:

Data/
.......User1/
.......User2/


now, is it possible to have a link send a user to the Data folder, which is protected by .htaccess, and have it, depending on the username and password given, redirect to one of the other sub-directories?

Also, if there is an index.html page in the directory, will it load that instead of showing the file directory?

I just want one login form that sends users to each of their own specific data folders. Is .htaccess the right method to achieve this?
boyd1080
 
Posts: 1
Joined: 27 Nov 2008 17:11

Return to Main