Solved

direct users to diff pages depending on what u/p used

Posted on 2004-08-23
3
147 Views
Last Modified: 2010-03-04
please excuse my inexperience, im not an apache admin but have been given this task.

i need to create a .htaccess that will direct users to different pages depending on what username they type.

so link to page 'A.html' pops up the username and password window.

if user types 'userB' for the their username they are directed to 'B.html', and if the type 'userC' for their username they are directed to 'C.html'

is this possbile?



0
Comment
Question by:howardsd
3 Comments
 
LVL 15

Accepted Solution

by:
periwinkle earned 125 total points
ID: 11891279
I'd use a small script for this purpose that checks which user is logged in;  to obtain the username, in perl, you would use:

#!/usr/local/bin/perl

$username = $ENV{'REMOTE_USER'};

and then redirect based on the $username.

0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question