title: .htaccess DirectorySlash Off causes "/" to be inaccessible
body: <p>I am currently using the following code in my .htaccess:
  I have (A|B) because I have A.php, B.php, /A, and /B so I want the URL to redirect to A.php when /A is called.</p>
  
  <pre><code>RewriteEngine On
  DirectorySlash Off
  
  RewriteCond %{REQUEST_FILENAME} (A|B)/$
  RewriteRule ^(.*)/$ $1
  
  RewriteCond %{REQUEST_FILENAME}\.php -f
  RewriteRule ^(.*)$ $1.php
  </code></pre>
  
  <p>However, with</p>
  
  <pre><code>DirectorySlash Off
  </code></pre>
  
  <p>I cannot access my root directory without a trailing slash. For e.g
  If I have the files under directory /site, I can access /site/, /site/index, and /site/index.php but I cannot access using /site as it gives me a 403 error. I have seen on other SO questions that with DirectorySlash Off it will skip /site. </p>
  
  <p>Is there a way to write a rule such that it applies to all files/directories apart from the root /site?
  If not is there a way to remove trailing slashes for URLs where a .php file is involved?</p>
  
  <p>I am asking this because when DirectorySlash is On, I may try /site/A?id=824 and the URL will become /site/A/?id=824.</p>