Create Index html file in All newly created folder

See all posts See thread Reply

Re: Create Index html file in All newly created folder new!
by Bob Brown, 11 years, 3 months ago
I agree - your server configuration should be used to deny access to directory listings if that is your intention.

I can't speak for other web servers but in Apache you can do this (normally) by placing the following line in a .htaccess file in your web root:

Options -Indexes

Note that your webserver configuration MAY be set to ignore this in which case contact your webserver administrator. Chances are that on a shared hosting environment that this will work fine though.

See http://www.thesitewizard.com/apache/prevent-directory-listing-htaccess.shtml for example.Reply