Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Do RewriteCond Use Short Circuited AND? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
StephenJ
Newbie
Newbie


Joined: 17 April 2008
Online Status: Offline
Posts: 17
Posted: 24 July 2008 at 1:19pm | IP Logged Quote StephenJ

If you have three RewriteCond does ISAP Rewrite skip the second 2 if the first one doesn't match?

RewriteCond #1 <-- doesn't matches

RewriteCond #2

RewriteCond #3

RewriteRule ....

If #1 doesn't match are 2 and 3 even checked? If they are... could you consider changing that for a future release? I imagine they are skipped though, just want to verify.

-Stephen

 



Edited by StephenJ - 24 July 2008 at 1:19pm
Back to Top View StephenJ's Profile Search for other posts by StephenJ
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 600
Posted: 24 July 2008 at 2:07pm | IP Logged Quote Vyacheslav

Hi Stephen.
By default, the sequence of conditions perceives like AND operator. So, if one condition is false, then other doesn't match.
If you want to present the conditions as OR operator, then you must use OR flag, e.g.:
Code:
RewriteCond ...... [OR]
RewriteCond .... [OR]
.....


__________________
Kind regards!
Vyacheslav Shinkarenko, HeliconTech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
StephenJ
Newbie
Newbie


Joined: 17 April 2008
Online Status: Offline
Posts: 17
Posted: 24 July 2008 at 2:25pm | IP Logged Quote StephenJ

I wasn't really asking if the others don't match, but whether they are even evaluated.

-Stephen

Back to Top View StephenJ's Profile Search for other posts by StephenJ
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4178
Posted: 25 July 2008 at 5:17am | IP Logged Quote Anton

By default, if the first Cond doesn't match, the following Conds are skipped. To allow processing of the following Conds you should add [OR] flag as it was mentioned by Vyacheslav.


__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum