title: Invalid Url Redirection
body: <p>I have different folders in the site I am making.</p>
  
  <p>What if the user tries to enter that folder, How would I not let them see what's inside?</p>
  
  <p>Or can I redirect them into another page saying that they don't have the permission to access the folder/ invalid url?</p>
  
  <p>I read something about htaccess but I dunno how that one works.</p>
  
  <p>I am currently doing some trick (like adding index.php in  the folders with a message saying they don't have permission to access) to every folder.</p>
  
  <p>But it's kind of a pain. And I believe there's an easier method.</p>