title: Apache RewriteRule: bad flag delimiters
body: <p>This is my .htaccess file</p>
  
  <pre><code># Redirect every request to index.php
  RewriteBase /
  RewriteEngine on 
  RewriteRule .* to public/index.php
  </code></pre>
  
  <p>And i'm receiving the following error in the error.log:</p>
  
  <blockquote>
    <p>RewriteRule: bad flag delimiters</p>
  </blockquote>
  
  <p>What's wrong with the .htaccess file? (I just started stying mod_rewrite module).</p>
  
  <p>Edit: the .htaccess file is in the site's root.</p>