title: How to ignore directories with same name as file while hiding extentions
body: <p>I have a directory and a file with the same name, example:</p>
  
  <p>foo.html</p>
  
  <p>foo/</p>
  
  <p>My .htaccess file is set up to hide the file extensions in the address bar, so when I request www.example.com/foo it should display the foo.html file. However, since there is a directory with the same name - the foo.html file is not displayed and the directory is shown instead like www.examplecom/foo/</p>
  
  <p>How can I ensure that files take precedence over directories with the same name? I'v been googling for hours and have not found a working solution. I've tried disabling DirectorySlash with no luck.</p>
  
  <p>My .htaccess file:</p>
  
  <pre><code>RewriteEngine On
  DirectorySlash Off
  
  RewriteCond %{REQUEST_FILENAME}.html -f
  RewriteRule !.*\.html$ %{REQUEST_FILENAME}.html [L]
  </code></pre>
  
  <p>Running Apache/2.4.7 (Ubuntu) Server</p>