SyntaxFix
Write A Post
Hire A Developer
Questions
Tags
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.
This question is related to apache .htaccess apache2
apache
.htaccess
apache2
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
Source: Stackoverflow.com