title: Rewrite Rules inside httpd does not work
body: <p>I placed my rewrite rules inside directory tag.
  Before I asked the question I've read Apache documentation where is written: </p>
  
  <blockquote>
    <p>A web-path to a resource</p>
    
    <blockquote>
      <p>RewriteRule ^/foo$ /bar    </p>
    </blockquote>
    
    <p>If DocumentRoot is set to /usr/local/apache2/htdocs, then this directive would map requests for <a href="http://example.com/foo" rel="nofollow">http://example.com/foo</a> to the path /usr/local/apache2/htdocs/bar.</p>
  </blockquote>
  
  <p>So I did as written.<br>
  In example below I want: /aaaaa to redirect to /index.php?action=aaaaa</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerAdmin webmaster@localhost
      ServerName test.com
      DocumentRoot /var/www/project/released/test
  
      &lt;Directory /var/www/project/released/test&gt;
              AllowOverride none
              Options Indexes FollowSymLinks MultiViews
              Order allow,deny
              allow from all
  
              RewriteEngine on                
              RewriteRule ^/([a-z0-9-_]+)$     /index.php?action=$1 [NC,L]
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>In apache log is written:</p>
  
  <pre><code>[Mon May 27 23:14:11 2013] [error] File does not exist: /var/www/project/released/test/aaaaa
  </code></pre>
  
  <p>Could you please help and advice why this may not work and why the log shows totally different behavior (obviously this path does not exist but it never should, according to the doc!)? I have mod_rewrite installed and enabled. </p>