httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <>
Subject Re: [users@httpd] How to set environment variable from RewriteMap? (was Re: [users@httpd] mod_rewrite E flag does not set env. variable)
Date Tue, 11 Mar 2008 08:16:16 GMT
On Mon, 2008-03-10 at 14:10 +0100, Krist van Besien wrote:
> On Mon, Mar 10, 2008 at 1:44 PM, Thorsten Scherler
> <> wrote:
> >  Does somebody has an idea how I can save either whether a rewrite had
> >  happened or the result of the rewriteMap expression.
> Maybe you could try this:
> RewriteCond ${portadaboja:boletin}      ^(.+)$
> RewriteRule ^/BOJA$        /boja/%1   [E=FOCUS:true,E=REWRITEMAP_RESULT:%1,L]

When I change the L flag to a R flag I can see the correct page but as
discussed before without the variable set. 

When I use the above expression as is, I get a 404 and can see in the
[Tue Mar 11 09:05:30 2008] [error] [client] File does not
exist: /opt/datos/httpd/boja, referer:

Changing the expression a bit to:
RewriteRule ^/BOJA$        /%1   [E=FOCUS:true,E=REWRITEMAP_RESULT:%1,L]
will work fine. 

Still the problem is that the url is not rewritten leaving all my
relative links pointing to no existing resources.

As I understand your other mail I just have two possibilities to solve
the problem:
- cookies
- query parameters

Not very excited about neither of them. 

Thanks for your help so far.

Thorsten Scherler                       
Open Source Java                      consulting, training and solutions

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