htaccess RewriteCond does not work
<p>On my webserver I would like to redirect all visits to specific file with two exceptions. If the URI is <code>mydomain.com/Folder1</code> or <code>mydomain/Folder2</code> (and anything behind that) they should work normally. I tried with:</p>

<pre><code>RewriteCond %{REQUEST_URI} !=www.mydomain.com/Folder1.* | www.mydomain.com/Folder2.*
RewriteRule ^.*$ www.mydomain.com/error.php [R=301,L]


RewriteCond %{DOCUMENT_ROOT}/$1 -d
RewriteRule ^(.*?[^/])$ %{REQUEST_URI}/ [L,NE]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)/?$ /index.php?path=$1 [NC,L,QSA]
</code></pre>

<p>But this rule does not work. Can someone please have a look on it?</p>