Forum Moderators: phranque

Message Too Old, No Replies

mod_rewrite - boolean joining of RewriteCond-intionals?

where are the implied parentheses?

         

stephenrs

12:15 am on Jun 22, 2005 (gmt 0)

10+ Year Member



when combining multiple RewriteCond statements, i'm wondering what the order of evaluation and precedence is, ie, where are the implied parentheses?

for example, given:


RewriteCond condA [OR]
RewriteCond condB
RewriteCond condC

does this evaluate to:

(condA OR condB) AND condC

or

condA OR (condB AND condC)

my instinct tells me it's the first one, but i need to be sure.

thanks.

stephen

jd01

2:31 am on Jun 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your instinct is correct it is the first one.

Justin

stephenrs

3:46 am on Jun 22, 2005 (gmt 0)

10+ Year Member



thanks, justin. after a bit of a struggle, i'm feeling quite comfortable now with the mysterious art of mod_rewrite...