Re: RewriteCond - is this fast fail?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Do a quick test, and enable the rewrite log. Make sure you use a log level of 5 to see those details.

On Tue, Jan 10, 2023 at 6:28 PM sebb <sebbaz@xxxxxxxxx> wrote:
On Tue, 10 Jan 2023 at 23:21, Frank Gingras <thumbs@xxxxxxxxxx> wrote:
>
> The implicit behaviour for multiple RewriteCond directives is AND, unless you use [OR].

Yes, that is documented.

> So without [OR], all the conditions have to match to apply the rewrite rule.

Yes, but are any subsequent conditions evaluated?

> On Tue, Jan 10, 2023 at 6:06 PM sebb <sebbaz@xxxxxxxxx> wrote:
>>
>> Does the first RewriteCond that fails cause any following RewriteCond
>> entries to be skipped?
>> (up to the RewriteRule)
>>
>> I would hope that is the case, but AFAICT it is not explicitly stated.
>>
>> If it is the case, perhaps it would be worth making explicit?
>> (and suggesting that the cheapest checks are done first).
>>
>> Sebb
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux