title: RewriteCond %{REQUEST_FILENAME} !-d not working
body: <p>I have seen several other threads about this but for some reason in my specific case the solutions are not working.</p>
  
  <p>Here is the .htaccess</p>
  
  <pre><code>DirectoryIndex index.php index.html index.htm
  Options +FollowSymLinks -Multiviews -Indexes
  RewriteEngine on
  RewriteBase /
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^([a-zA-Z0-9_-]+)/?$ index.php?page=$1
  </code></pre>
  
  <p>The desired effect is that index.php will load what ever page is requested in the GET (/events-diary = index.php?page=events-diary) &amp; that works fine.</p>
  
  <p>However I have some REAL directories which need to be accessible for example /admin/</p>
  
  <p>The above .htaccess works perfectly fine as desired on my home computer MAMP, it works perfectly fine on my Amazon Micro, <strong>it will not work on the deployment server ipage.com</strong> </p>
  
  <p>When you enter /admin it will redirect to the root index. When you type /admin/index.php it works, but you have to specify the index.php</p>
  
  <p>I cant figure out when it seems to be ignoring the !-d</p>
  
  <p>UPDATE:</p>
  
  <p>index.php contains the following PHP</p>
  
  <pre><code>if(!isset($_GET['page'])){
      header("Location: home");
      exit;
  }
  $line=page_content($_GET['page']);
  </code></pre>
  
  <p>note that this functions fine on the other 2 servers, i dont see why it would behave differently on the 3rd.</p>