httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Folini <>
Subject Re: [users@httpd] How to compare cookie value to request URL
Date Mon, 05 Nov 2007 07:53:27 GMT
Hey Ursula,

On Wed, Oct 31, 2007 at 01:57:07PM -0700, wrote:
> In the webserver configuration, I need to compare the value of a cookie
> against the request URL. 
> E.g. on a request for /path/to/files/, return the file if the
> cookie contains the file name: Otherwise redirect to a
> different page. 

This does not sound very elegant. So you may want to reconsider your

> With RewriteCond, I can compare the cookie value to a static value or a
> regular expression, but not to another variable. Is there any way to do
> that? 

If you have to stick with it, I guess you might be able to
solve it with a perl rewrite map. It would not scale very well,
but for a small site which absolutely needs this functionality
you could give it a try.



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