Solved

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

Posted on 2004-08-23
3
144 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now