title: Rewrite Cond - bad flag delimiter .htaccess (Apache)
body: <p>I'm trying to use the .htaccess to redirect bot / unwanted clients to an errorpage.
  But on any connection it brings just "RewriteCond: Bad flag delimiters"</p>
  
  <p>.htaccess:</p>
  
  <pre><code>RewriteEngine On
  Options +FollowSymlinks
  RewriteBase /
  RewriteCond %{HTTP_USER_AGENT} askpeter_bot [NC,OR]
  RewriteCond %{HTTP_USER_AGENT} Jakarta [NC,OR]
  ...
  RewriteCond %{HTTP_USER_AGENT} Genieo [NC]
  RewriteRule ^(.*) "http\:\/\/www\.example\.com\/bots\/notallowed.html" [F]
  </code></pre>
  
  <p>Any ideas what could be the problem?
  <br /><br /><br />
  Edit:<br />
  For now i'm using deny to block the user agents</p>
  
  <pre><code>deny from env=block
  SetEnvIfNoCase User-Agent "USER-AGENT" block=yes
  </code></pre>
  
  <p>But it's not the way i want to do because you just get an empty page and no message why</p>