title: htaccess ModRewrite URLs to pull contents from Index.php file, leaving URL as is
body: <p>I am trying to run a mod_rewrite rule to load the contents of index.php regardless of the entered URL.
  Then in the index.php file I will deal with either returning a correct page or outputting a 404 page.
  This is for SEO purposes to allow a nice URL like:
  <a href="http://www.example.com/product" rel="nofollow">http://www.example.com/product</a>
  rather than
  <a href="http://www.example.com/?p=product" rel="nofollow">http://www.example.com/?p=product</a></p>
  
  <p>I have this working on one sub folder of my blog but when trying to test it on a new project all i get is 500 errors as for ALL urls.</p>
  
  <p>Here is the existing htaccess:</p>
  
  <pre><code>RewriteEngine on
  RewriteBase /products/
  RewriteCond %{HTTP_HOST} ^www.danclarkie.co.uk/products [NC]
  RewriteRule ^(.*)$ http://danclarkie.co.uk/products/$1 [L,R=301]
  RewriteCond %{REQUEST_URI} !/admin.php$
  RewriteRule .* index.php
  </code></pre>
  
  <p>Any help ^_^</p>
  
  <p>Dan</p>