> It would be nice of version RewriteCond could just call a > shell script that would return a bool. The rest would > be trivial. I think you're overcomplicating. Read the doc carefully as Andre has pointed out re: where substitution occurs and which side is actually the regex. If you can't get your regex to understand your environment variables, use a text or program-type RewriteMap. -- Eric Covener covener@xxxxxxxxx --------------------------------------------------------------------- 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: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx