"Jens Meier" <jens_meier12.DeleteThis@yahoo.de> schreef in bericht
news:cp484k$dk9$02$1@news.t-online.com...
> > Add in between the current rule and condition
> > RewriteCond %{REQUEST_URI} !^/pathand/script2skip.cgi$
>
> This works! Thank you very much.
> Meanwhile I also found a better mod_rewrite documentation at
<font color=purple> > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs/mod/mod_rewrite.html</font" target="_blank">http://httpd.apache.org/docs/mod/mod_rewrite.html</font</a>>
>
> But I still have a question: Now there are 2 RewriteCond
> statements in my httpd.conf. According to the mod_rewrite
> documentation the RewriteRule will only be applied, if both
> RewriteConds match. Did I unterstand this correctly?
Default behaviour is indeed AND as documented at
<a style='text-decoration: underline;' href="http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond," target="_blank">http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond,</a> though the OR
flag allowes one to OR conditions.
However, if some simple conditions are applied to the same request property,
RewriteCond %{REMOTE_HOST} ^host1\.* [OR]
RewriteCond %{REMOTE_HOST} ^host2\.* [OR]
RewriteCond %{REMOTE_HOST} ^host3\.*
a regular expression should do a better job
RewriteCond %{REMOTE_HOST} ^(host1|host2|host3)\.*
The result of the following
RewriteCond %{REMOTE_HOST} ^host1\.* [OR]
RewriteCond %{REMOTE_HOST} ^host2\.* [OR]
RewriteCond %{REMOTE_HOST} ^host3\.*
RewriteCond %{SERVER_PORT} !443$
cannt be predicted by documentation -boolean math may execute AND before
OR-, however
RewriteCond %{SERVER_PORT} !443$
RewriteCond %{REMOTE_HOST} ^(host1|host2|host3)\.*
is fully predictable.
Your current conditions do not redirect requests at port 4443 ...
.... using "RewriteCond %{SERVER_PORT} !^443$" is more accurate.
HansH<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Apache 1.3 no ssl for al single script