Viewing 4 replies - 1 through 4 (of 4 total)
  • Add a blank file in /web called index.html

    Thread Starter doland

    (@doland)

    ahh, yeah well that takes me to a blank page (as expected) so all I did was add a redirect inside of that index.html file. Works geat now, thanks!

    it displays the folder contents as you can see

    This is also going to be true for any other directory that may not contain an index file. Here’s an example: dolanddesign.com/wp-content/uploads/

    You may want to prevent casual browsing of all directories on your site by adding:
    Options -Indexes to the very top of your .htaccess file.

    Modifying the .htaccess file is the best and safest option

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to NOT display folder contents’ is closed to new replies.