.htaccess
Matt Graham
mhgraham at crow202.org
Fri Jul 15 10:45:15 MST 2016
On 2016-07-15 09:39, Snyder, Alexander wrote:
> RewriteCond condition1 [OR]
> RewriteCond condition2 [OR]
> RewriteCond condition3 [OR]
> RewriteRule WriteThis [L]
>
> Does anyone know if this logic means that by default [apache rewrite]
> rules
> are additive in nature?
The documentation on apache's website for the RewriteCond directive in
mod_rewrite says:
ornext|OR' (or next condition)
Use this to combine rule conditions with a local OR instead of the
implicit AND.
So yes, if you have multiple RewriteCond lines, they're logically ANDed
unless you tell apache to do something else.
--
Crow202 Blog: http://crow202.org/wordpress
There is no Darkness in Eternity
But only Light too dim for us to see.
More information about the PLUG-discuss
mailing list