httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject RE: [users@httpd] Authentication Redirect
Date Wed, 01 Oct 2003 23:37:01 GMT

On Wed, 1 Oct 2003, Jason M. Kuhlman wrote:

> Can this be done then by user?

> > I want to be able to redirect users to their 'area' of our website by
> > which group they are assigned to in dbm authentication file.  How do I
> > do this?

Yes.  One way is with mod_rewrite.  For example:

RewriteEngine On
RewriteCond %{LA-U:REMOTE_USER} (.+)
RewriteRule /protected/(.*) /protected/%1/$1

which will redirect access by the user "jason" from /protected/file to
/protected/jason/file.

See the mod_rewrite documentation for much more details.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message