httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pekka Savola <pek...@netcore.fi>
Subject Re: [users@httpd] rewrite: RewriteMap prg: doesn't support full query string
Date Sat, 03 Jan 2004 06:45:07 GMT
On Fri, 2 Jan 2004, [ISO-8859-15] André Malo wrote:
> > external map, and manipulate the result based on the non-filename 
> > parts of the key, that is:
> > 
> > /unf.php?foobar=asdfg
> >  would be redirected by the program to e.g. /bar.php, and:
> > /unf.php?foobar=kfjff 
> >  would be redirected by the program to e.g. /beef.php.
> > 
> > However, this does not work: RewriteMap apparently uses only the 
> > filename and path as the key, as evidenced by (slightly 
> > rewritten :) RewriteLog:
> 
> <snip />
> 
> > Or have I missed something obvious?
> 
> Probably :-). You have to use %{QUERY_STRING} for the query string. However,
> your tested rules are a good start to work further... :-)

I'm not sure what you mean -- maybe something like:

RewriteRule (%{QUERY_STRING}) ${test-program:$1}

instead of:

RewriteRule ^(.*) ${test-program:$1}

.. but the former doesn't work at all.  In fact, it never executes
test-program in the first place, as there is no debug line of that,
like:

80.186.174.139 - - [03/Jan/2004:01:18:59 -0500] 
[www.mysite.org/sid#81f4dc8][rid#812c038/initial] (3) 
[per-dir /home/webroot/] applying pattern 
'(%{QUERY_STRING)' to uri 'dir/ec/tor/y/file.zip'
80.186.174.139 - - [03/Jan/2004:01:18:59 -0500] 
[www.mysite.org/sid#81f4dc8][rid#812c038/initial] (1) 
[per-dir /home/webroot/] pass through 
/home/webroot/dir/ec/tor/y/fipe.zip

So, you're probably thinking of something else than what I'm able to
figure out..??

-- 
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings



---------------------------------------------------------------------
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