title: XAMPP - Rewrite Rule doesn't work
body: <p>I am using XAMPP (Windows 7) and in httpd.conf I have:</p>
  
  <ul>
  <li>AllowOverride All</li>
  <li>LoadModule rewrite_module modules/mod_rewrite.so (uncommented)</li>
  </ul>
  
  <p>In <em>htdocs</em> directory I have subdirectory called <strong>shop</strong> where is my website. Inside <em>shop</em> I have one more subdirectory called <strong>shirts</strong> containing the file:</p>
  
  <ul>
  <li>shirts.php</li>
  </ul>
  
  <p>To open it you just neet to enter the following url: <a href="http://localhost/shop/shirts/shirts.php" rel="nofollow">http://localhost/shop/shirts/shirts.php</a></p>
  
  <p>But, when I open just <a href="http://localhost/shop/shirts/" rel="nofollow">http://localhost/shop/shirts/</a> -  browser displays a directory listing, and I want it to open shirts.php.</p>
  
  <p>So, inside <strong>/shirts</strong> directory I created the following <strong>.htaccess</strong> file:</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^shirts/$ /shop/shirts/shirts.php
  </code></pre>
  
  <p>But it doesn't work. Do you know what I'm doing wrong, why is this not working? </p>
  
  <p>Thanks in advance!</p>