Solved

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

Posted on 2004-08-23
3
143 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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

772 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

12 Experts available now in Live!

Get 1:1 Help Now