Forum Moderators: phranque

Message Too Old, No Replies

htaccess ignore parent directory in folder but not in subfolders

Need help to configure htaccess

         

wanalex

12:11 am on Jan 17, 2011 (gmt 0)

10+ Year Member



Hi,

I'm doing a very simple website for local users on my network.

basicaly the links on the website point to a directory where files are listed automatically.

The structure is simple:

WWW/movies/subfolders
WWW/music/subfolders
www/games/subfolders

I put an htaccess in the root of movies music and games:

Options +Indexes

IndexOptions FancyIndexing
IndexOptions FoldersFirst
IndexOptions SuppressDescription
IndexOptions NameWidth=80
IndexOptions SuppressLastModified
IndexOptions SuppressSize
IndexIgnore ..

htaccess affects the folder but the subfolders as well...

Is it possible to have the rule "IndexIgnore .." apply for the folder only but not to the subfolders?

Any help would be appreciated. Thanks

jdMorgan

9:36 pm on Jan 19, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Put a .htaccess file in each subdirectory which overrides the parent-directory .htaccess setting for IndexIgnore or for Options +Indexes

Jim