Alan Little wrote:
I have a rule in
doc root for the domain

Why don't you use the Rules in per-server context (httpd.conf), many things are a lot easier there, because there is no internal redirect and the regEx is only compiled once at startup and not per each request.

What can you find in your rewrite.log? Or are the rules not processed?

  RewriteCond %{HTTP_COOKIE} phn_demo=(.*)
  RewriteRule (.*) /demo/%1/$1

If you're using the rule in per-dir context, you must exclude the folder /demo/ as you did for the other rule. May be you must separate the group from other cookies, too?

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/demo/
RewriteCond %{HTTP_COOKIE} phn_demo=([^;]+)
RewriteRule ^(.*) /demo/%1/$1 [L]

--
Robert

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to