title: 500 Internal error with .htaccess only on localhost - redirect loop
body: <p>I have the following .htacess file to remove the .php extension and to create SEO Friendly URLs:</p>
  
  <pre><code>RewriteEngine On 
  
  ErrorDocument 404 /404.php
  
  RewriteCond %{ENV:REDIRECT_STATUS} ^$
  RewriteRule ^(.+)\.php$ /$1 [R=301,L]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule (.*)$ index.php?page=$1 [L]
  </code></pre>
  
  <p>This works absolutely fine when hosted on our domain, but when I test locally on our localhost server it comes up with Error 500, Internal Server Error.</p>
  
  <p>In my httpd.conf file, the rewrite module is uncommented:</p>
  
  <pre><code>LoadModule rewrite_module modules/mod_rewrite.so
  </code></pre>
  
  <p>The Apache Error Log states:</p>
  
  <pre><code>Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://localhost:8888/Website/
  </code></pre>
  
  <p>Any ideas?</p>