title: Apache RewriteRule .* index.php [NC,L] Not working
body: <p>I am trying to redirect everything to a single page from my /website/folder/ directory.</p>
  <p>I added a simple .htaccess with this simple code (I know this would require more code in .htaccess but it's just a test).</p>
  <pre><code>RewriteEngine on
  RewriteRule .* index.php [NC,L]
  </code></pre>
  <p>When I try :</p>
  <pre><code>http://127.0.0.1:8888/website/folder/fileDoesntExistMustGoIndex
  </code></pre>
  <p>I have an &quot;Object not found 404&quot; error and the access.log display:</p>
  <pre><code>127.0.0.1 - - [13/Mar/2010:13:48:31 -0500] &quot;GET /website/folder/fileDoesntExistMustGoIndexHTTP/1.1&quot; 404 1118
  </code></pre>
  <p>I have check the httpd.conf and I see nothing that could alter this .htaccess statement. Any idea?</p>
  <h2>Edit:</h2>
  <pre><code>RewriteEngine on
  RewriteRule .* http://www.google.ca [NC,L]
  </code></pre>
  <p>This works... but not when I try to rewrite to a page of mine.</p>