httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] URL Rewriting on a uer by user basis
Date Sun, 22 Aug 2004 02:56:19 GMT
On Sat, 21 Aug 2004 18:49:56 -0700,
<> wrote:
> > Look at mod_rewrite in the manual, and particularly the directive
> RewriteRule
> >
> > You can use %{REMOTE_USER} in the output pattern to include the actually
> > authenticated user name, or you can instead provide a mapping from
> username
> > to some other string (RewriteMap directive)
> >
> I dont think this will work. The URL rewrite happens before the
> authentication.

Actually, that depends on what context the RewriteRule's are in.  It
should work fine if they are in <Directory> sections or .htaccess

And if it doesn't work, you can use %{LA-U:REMOTE_USER}, which will do
a sub-request to get the REMOTE_USER.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message