I'd like to use $1
in the [cookie]
flag of RewriteRule
. I want to create a cookie with a part of the request URL as in the following:
RewriteRule ([0-9]*)/*. - [CO=cookieName:$1:example.com]
for example:
If the request url is: http://www.example.com/1234
, i want to set a cookie name cookieName
with the value 1234
it seems no cookie is add when a dollar sign ($1
) is between the cookie directive.
Is this something possible ?
Thank you