Solved

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

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
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 …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

813 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

14 Experts available now in Live!

Get 1:1 Help Now