title: Tricky .htaccess and Drupal problem
body: <p><strong>1)</strong> <strike>I have a Drupal site located at <code>http://example.com</code> and I have a directory located at <code>http://example.com/foo</code>, but I also have a Drupal page with an alias of <code>http://example.com/foo</code>. How can I get the Drupal page to serve? Currently, I get a 403 forbidden page as a result of the <code>Options -Indexes</code> declaration in Drupal's .htaccess file, but I do not want to remove this as I do not want directories to be browsable.</strike></p>
  
  <p><strong>EDIT:</strong> I have solved this with the following rule:</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^(.*)$ http://localhost/s2k/index.php?q=$1 [L,QSA]
  </code></pre>
  
  <p><strong>2)</strong> To make the problem even more difficult, given the same scenario, if I have an <code>index.html</code> file inside the directory <code>http://example.com/foo/index.html</code> I always want this to take priority over Drupal's aliased page (which it does at the moment - currently I have modified the .htaccess file so that any directory with an index.html file displays it - <code>DirectoryIndex index.php index.html</code>).</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>So now, how can I write a RewriteCond that will look to see whether or not there is an index.html file inside the directory?</p>