View Single Post
Old 24th January 2013, 12:11
flyingmg flyingmg is offline
Junior Member
Join Date: Jan 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

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:
RewriteCond %{HTTP_COOKIE} ServerName=(.*)[-,;]?
RewriteCond %{REQUEST_URI} ^/
RewriteRule /(.*)$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.
Reply With Quote