On Mon, 2008-03-10 at 14:10 +0100, Krist van Besien wrote:
> On Mon, Mar 10, 2008 at 1:44 PM, Thorsten Scherler
> <thorsten.scherler.ext@juntadeandalucia.es> 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
log:
[Tue Mar 11 09:05:30 2008] [error] [client 1.2.3.4] File does not
exist: /opt/datos/httpd/boja, referer:
http://1.2.3.4/boja/boletines/2008/1/index.html
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.
salu2
--
Thorsten Scherler thorsten.at.apache.org
Open Source Java consulting, training and solutions
---------------------------------------------------------------------
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
|