Meanwhile I could figure out how to access to the content of the cookie. But I am still stuck with a RewriteCond that should just check wether the cookie is set or not, independnatly from its content. The content should be used as a result of the condition being fullfilled and putting it into %1.
After some google search, I found several example how to check for some content and changed it, so that I thought it should match my needs. Unfortunatly, it does not work as desired until now.
My rewrite condition and rule looks actually like that:
Code:
RewriteCond %{HTTP_COOKIE} ServerName=(.*)[-,;]?
RewriteCond %{REQUEST_URI} ^/
RewriteRule /(.*) http://%1.acme.com/$1 [P]
How should my Rewritecond looks like, so that it checks that the cookie is set to anything and return its content back?

Any hint would be greatly apreciated.

Thx, M.