Solved

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

Posted on 2004-08-23
3
148 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ports for sccm 2012 1 103
How to access multiple local hosts from phone on network 5 98
Apache LDAP Authentication 20 55
Rewrite Rule head scratcher 18 30
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

730 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