views:

266

answers:

2

I have the following .htaccess line, simple no indexes on root.

Options -Indexes

What do we add so it propagates to any sub directory instead of having to create one file for each? One .htaccess on root only.

+1  A: 

htaccess files affect the directory they are placed in and all sub-directories, that is an htaccess file located in your root directory (yoursite.com) would affect yoursite.com/content, yoursite.com/content/contents, etc.

http://www.javascriptkit.com/howto/htaccess.shtml

Kaleb Brasee
Sorry but your statement is wrong. It doesn't include sub directories unless 'Options All' is specified.
Codex73
+2  A: 

This does the trick.

Options All -Indexes
Codex73