Let me use $1 within the [cookie] flag of RewriteRule. I wish to produce a cookie with an element of the request URL as with the next:

RewriteRule ([0-9]*)/*. - [CO=cookieName:$1:example.com]

for instance: When the request url is: http://www.example.com/1234, i wish to set a cookie title cookieName using the value 1234

it appears no cookie is add whenever a dollar sign ($1) is between your cookie directive.

Is something possible ?

Thanks