Re: [EMAIL PROTECTED] Cookie-Based Rewrite

2006-03-10 Thread Alan Little
OK, so I got this figured out, and thought I'd post it here for posterity. Rather than putting the cookie rule in a separate .htaccess file in the demo directory, I put them both in the root: RewriteCond %{HTTP_HOST} ^demo.example.com$ RewriteCond %{REQUEST_URI} !^/demo/ RewriteCond %{HTTP_COOKIE

Re[2]: [EMAIL PROTECTED] Cookie-Based Rewrite

2006-03-09 Thread Alan Little
Thank you. Unfortunately, this is on a shared hosting server, and I don't have access to the config files, nor the re-write log (if there is one). I figured out after I posted my question that I needed to exclude the /demo/ directory, since that's where this is. I tried the regex you suggested --

Re: [EMAIL PROTECTED] Cookie-Based Rewrite

2006-03-09 Thread Robert Ionescu
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

[EMAIL PROTECTED] Cookie-Based Rewrite

2006-03-09 Thread Alan Little
Sorry if this has been asked before; I tried to find if there were searchable archives for this list, but couldn't find anything. I want to do a rewrite based on the value of a cookie. I have a rule in doc root for the domain, which directs it to the demo directory based on the third-level domain