httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] SetEnvIf[NoCase] and url get attributes
Date Tue, 13 Sep 2005 15:55:41 GMT
On 9/13/05, sven buerger <> wrote:
> Hi,
> i've tried many things to get a setenvif working with GET-parameters in
> a url. The problem, i can only use the url till the ? marker. I will
> explain by example
> http://locahost/index.php?test=1
> i want to check the existence of test. i tried
> setenvifnocase Request_URI test test=1
> but this doens't work. i've tried

As the docs say, Request_URI does not include the query string.  I
believe you'd need to use mod_rewrite for this:

RewriteEngine On
RewriteCond %{QUERY_STRING} ^test=1$
RewriteRule .* - [E=test:1]

Be sure to use the RewriteLog for debugging.


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