Help .htaccess login redirect script.

jcarson

Senior member
Nov 30, 1999
943
0
0
I am using a webserver and have not done a lot of htaccess stuff. I am looking to have a sscript where the user clicks a "Log In", and depending on their answer it takes them to a protected directory. I need the list of users names masked (easy enough). Thats the only catch. Not top security here, but decent.

Is there an easy way to accomplish this with htaccess?

Goal: Click login, get transferred to a protected directory based on login info. ie Joe logs in and it takes hime to \private\joe which it htaccess protected.

Seems simple, but I have not done this before. PM me please. :)
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Writing something in php/perl might be easier. I haven't seen anything like this done with .htaccess. Did you check the apache site? Their documentation isn't too bad.
 

jcarson

Senior member
Nov 30, 1999
943
0
0
where could I find a script like this in PHP? I dont know the syntax yet (time to learn)