title: 500 Internal Server Error instead of: 404 - Not Found
body: <p>Apparently these lines in my .htaccess cause the server to output a 500 instead of a 404 error which should appear when trying to access a non-existant site.</p>
  
  <pre><code>RewriteEngine On
  # Don't rewrite requests to /de or other real files
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_URI} !^.*/(css|scripts)
  # Rewrite incoming requests to their equivalent behind /de
  RewriteRule ^(.*)$ de/$1 [L,QSA]
  </code></pre>
  
  <p>Alas I'm very unfamiliar with .htaccess. Where's the mistake in this one which causes the 500 instead of the 404 error?</p>
  
  <p>This is the error in the logfile: </p>
  
  <blockquote>
    <p>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.</p>
  </blockquote>
  
  <p><strong>Edit:</strong></p>
  
  <p><code>RewriteRule ^(.*)$ de/$1 [L,QSA]</code></p>
  
  <p>This part is responsible for the error. Why does it prevent the 404-error page though?</p>