title: How to configure an Apache rewrite-rule to redirect all requests to 404 unless explicitly allowed
body: <p>I'm searchin on internet since yesterday and i couldn't find the answer. At least one that works for apache2.</p>
  
  <p>I just want a set of rewritemod rules that will make apache redirect everything to a 404 but allows me to explicitly override it for some files/folders.</p>
  
  <p>I've tried an inclusive rule but i couldn't get it working.</p>
  
  <p>Thanks.</p>