title: Why do I get a 301 redirect to folder name with slash?
body: <p>A request to <code>http://localhost/SAMPLE-CODES/backbone-mysql-reading-json/websites</code></p>
  
  <p>gets redirected as follows:</p>
  
  <pre><code>&gt; Request URL:http://localhost/SAMPLE-CODES/backbone-mysql-reading-json/websites
  &gt; Request Method:GET
  &gt; Status Code:301 Moved Permanently
  </code></pre>
  
  <p><strong>Response headers:</strong></p>
  
  <pre><code>&gt; HTTP/1.1 301 Moved Permanently Date: Thu, 06 Sep 2012 14:32:41 GMT
  &gt; Server: Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4
  &gt; mod_perl/2.0.4 Perl/v5.10.1 Location:
  &gt; http://localhost/SAMPLE-CODES/backbone-mysql-reading-json/websites/
  &gt; Content-Length: 417 Keep-Alive: timeout=5, max=100 Connection:
  &gt; Keep-Alive Content-Type: text/html; charset=iso-8859-1
  </code></pre>
  
  <p>I am not sure what causes this redirect.</p>
  
  <p>I have the following .htaccess in folder <code>c:\xampp\htdocs\SAMPLE-CODES\backbone-mysql-reading-json\</code>:</p>
  
  <p><strong>.htaccess</strong></p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.php [QSA,L]
  </code></pre>