[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sheflug] Re: Apache 2



Hi - 

Does anyone know the correct syntax for rewrite conditions based on cookies?  
I'm using Apache 2.0.54 on Gentoo, and have been though the docs with no joy.

It works for browser-based redirection:
RewriteCond %{HTTP_USER_AGENT} ^Mozill*

but for a cookie value 555 name 555 (it's definitely set - HTTP_COOKIE shows 
as '555=555') 

RewriteCond %{HTTP_COOKIE}  ^5* never works,

and  RewriteCond %{ENV:HTTP_COOKIE}  ^5* always works - even with a different 
cookie?????

RewriteCond %{ENV:HTTP_COOKIE}  ^55* doesn't work

Maybe it takes two arguments, (name and value), but I just get syntax errors 
reported on restarting the server when trying to guess this.

Graham
___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.