title: htaccess isn't working correctly with Kohana 3.1.x
body: <p>I need to be able to access everything under /admin_dir without the Kohana framework interfering, since the admin_dir doesn't use the framework at all.</p>
  
  <p>First off, here's my .htaccess file:</p>
  
  <pre><code># Turn on URL rewriting
  RewriteEngine On
  
  # Installation directory
  RewriteBase /
  
  # Protect hidden files from being viewed
  &lt;Files .*&gt;
      Order Deny,Allow
      Deny From All
  &lt;/Files&gt;
  
  #Allow the admin page to be accessed
  RewriteRule ^/?admin_dir(.*) admin_dir$1 [L]
  
  # Protect application and system files from being viewed
  RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
  
  # Allow any files or directories that exist to be displayed directly
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  
  # Rewrite all other URLs to index.php/URL
  RewriteRule .* index.php/$0 [PT]
  </code></pre>
  
  <p>This is the .htaccess file that comes with Kohana, minus the addition of the admin_dir rule.  However, no matter what I do I can't access the admin_dir. I get a Kohana exception saying that it couldn't find a route to match if I try to access /admin_dir/index.php, or that the URL couldn't be found if I try to access /admin_dir.</p>
  
  <p>The ONLY way I seem to be able to access the admin_dir is by commenting out the very last line of .htaccess.  The admin_dir isn't part of the Kohana framework, so I just want to bypass it all together.  I've found similar posts on SO about this, but nothing that works for my situation.</p>
  
  <p><strong>Edit:</strong>
  I do have an .htaccess file in the admin_dir/ for password protection.  The contents are below:</p>
  
  <pre><code>AuthType Basic
  AuthName "Admin Page"
  AuthUserFile "/home/mysite/.htpasswds/public_html/beta/admin_dir/passwd"
  require valid-user
  </code></pre>
  
  <p>Thanks in advance for your help, this has been a thorn in my side for way too long!</p>
  
  <p>Brian</p>