title: Apache RewriteCond %{REQUEST_FILENAME} !-d not working
body: <p>I have a few problems with our company website. My colleague left the <code>.htaccess</code> file like this: </p>
  
  <pre><code># Files in this directory will override the
  # controlled equivalent.
  
  # First, set up URL rewriting
  Options +FollowSymLinks
  RewriteEngine On
  
  # Forbid access to .htaccess files
  RewriteRule ^\.htaccess$ - [F]
  RewriteRule ^php\.ini$ - [F]
  
  # This Apache mod_rewrite rule checks to see
  # if the requested file exists as either a file
  # or a directory, if it doesn't then we rewrite 
  # to the respective controlled location (unless
  # we're already there!).
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !^.*/_control/.*$
  RewriteRule ^(.*)$ _control/$1 [L]
  </code></pre>
  
  <p>Everything was working OK but about a week ago, our mysite.com/admin and 404 page started redirecting to the hosting company's website. I investigated further and seems like the problem lies in the last four lines. As per Greg's answer here: <a href="https://stackoverflow.com/a/697980/1933380">https://stackoverflow.com/a/697980/1933380</a> I changed it to:</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !^.*/_control/.*$
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ _control/$1 [L]
  </code></pre>
  
  <p>but it doesn't work either. The folder structure looks like:</p>
  
  <p><img src="https://i.stack.imgur.com/NKn1Y.jpg" alt="enter image description here"></p>
  
  <p>Am I missing something or making a mistake?</p>