title: RewriteRule ^.*$ index.php [NC,L]
body: <p>I'm trying to redirect non-existent webpages to my index.php.</p>
  
  <p>I've created a .htaccess file in the same folder as my index.php with this data.</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} -s [OR] 
  RewriteCond %{REQUEST_FILENAME} -l [OR]
  Rewritecond %{REQUEST_FILENAME} -d
  
  RewriteRule ^.*$ - [NC,L]
  RewriteRule ^.*$ index.php [NC,L]
  </code></pre>
  
  <p>I'm using Wampserver and the httpd.conf for the apache server is set to </p>
  
  <blockquote>
    <p>AllowOverride All</p>
  </blockquote>
  
  <p>But still when I try to enter a non existent webpage I get the 404 error.
  Any idea?</p>
  
  <p>EDIT.
  By the way, I've seen this post <a href="https://stackoverflow.com/questions/2439562/apache-rewriterule-index-php-nc-l-not-working">HERE</a> And tried the stuff held there, but it didn't work for me.</p>