|
I have used ASP, JSP, and Servlets. Basically, you just setup a user database with a field that specifies where they go. For example my site sent employees to one subsite and customers to another subsite. They both had the same login page. I made a table in MySQL that had the username, password and Userlevel. Userlevel 1 = employee, Userlevel 2 = customer. The scripts would do a SELECT on the user DB and find out what the user level was then by use of a simple "if(rs.userlevel == 1) //goto the employee URL. Hope this helps. I don't think there is a way to do what you want with .htaccess. that just secures a folder.
|