title: Get Directory contents but dont show directory
body: <p>I have Linux hosting and I want to get files by its specified URL only because these files are only for registered users. But when I am accessing its directory URL all files are showing up.</p>
  
  <p>Example: www.site.com/files             (This should redirect to home page)</p>
  
  <p>Example: www.site.com/files/filename.zip ( This should be able to download file)</p>
  
  <p>I also tried a .htaccess modrewite but with files directory it was also not showing the file.</p>
  
  <p>Any Idea, How to resolve this problem.</p>