Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

[users@httpd] Reverse RewriteCond?

Mike -- EMAIL IGNORED

2009-06-30

Replies: Find Java Web Hosting

Author LoginPost Reply
I have (set in /etc/bashrc):
 echo $HTML_TST
 aa|bb|cc|dd|ee

and I tried:

 RewriteCond ee %{ENV:HTML_TST}

following the documentation that says:

 Syntax: RewriteCond TestString CondPattern

I expected ee to be recognized as one ofthe alternatives
in the pattern. It didn't work.

Frustrated, I tried:

 RewriteCond %{ENV:HTML_TST} ee

To my surprise, it did work, and as hoped, ff failed to
match.

This meets my requirement of matching any of the members of
a list, but appears to be contrary to the documentation.

Am I skating in this ice?

Thanks for your help.

Mike.


---------------------------------------------------------------------
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@(protected)
 "  from the digest: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.