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.
---------------------------------------------------
PLUG-discuss mailing list - [email protected]
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss
  • .htaccess Snyder, Alexander
    • Re: .htaccess Matt Graham

Reply via email to