httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jurgen <apa...@squarehosting.com>
Subject Re: [users@httpd] mod_rewrite and cookie values
Date Sat, 28 Dec 2002 00:33:05 GMT
Hi,

the only things that comes into my mind is a RewriteMap, which in your case probably needs
to be a perl script or another program.

Jurgen


On Fri, 27 Dec 2002 16:54:21 +0900
"Michael Clarke" <m-clarke@netyear.net> wrote:

> Hi,
> 
> I have a bit of a problem and I hope that you can help.
> 
> I want to extract the value from a cookie and use it as a path name in a url
> rewrite.
> 
> So far I have tried the below code in the httpd.conf file:
> 
> RewriteEngine On
> RewriteRule   oldpage\.html$  %{HTTP_COOKIE}/newpage.html [R]
> 
> The cookie value is a directory name. I think the problem with the way I'm
> doing it above is that it's returning the full key/value string of the
> cookie when I only want the value. I don't know how to resolve the variable
> to just the cookie value.
> 
> Any suggestions?
> 
> Thanks for your time.
> 
> Mike Clarke
> 
> --------------------
> Michael Clarke
> Software Engineer
> Netyear Group Corporation
> http://www.netyear.net
> --------------------
> 
> 
> ---------------------------------------------------------------------
> 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

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