title: Folders to 404 page on server
body: <p>I have a site where it contains some folders which currently simply list the contents (which I do not want to do).</p>
  
  <p>I could simply stick a index file in them however was wondering if there was a more elegant way to do this using the htaccess file. </p>
  
  <p>So for example I want <code>http://localhost:8888/includes/</code> to go to <code>http://localhost:8888/404.php</code></p>
  
  <p><strong>BUT</strong></p>
  
  <p>Need <code>http://localhost:8888/includes/header.php</code> and <code>http://localhost:8888/assets/img/head.png</code> to still work correctly</p>
  
  <p>Cheers :) </p>