Forum Moderators: phranque

Message Too Old, No Replies

.htaccess without subfolders

How do I make a htaccess valid only for 1 folder no subfolders

         

knnknn

6:34 pm on Nov 27, 2004 (gmt 0)

10+ Year Member



I have 2 similar questions

1) Is there any option I can set with to make a .htaccess valid for 1 folder only, and not the subfolders?

2) Can I have 2 .htaccess files? One that applies to subfolders, too. And one that doesn't?

Longhaired Genius

6:58 pm on Nov 27, 2004 (gmt 0)

10+ Year Member



Just put appropriate .htaccess files in the subfolders.

knnknn

7:24 pm on Nov 27, 2004 (gmt 0)

10+ Year Member



That's a bit too complicated if you have hundreds of subfolders

jdMorgan

12:55 am on Nov 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See RewriteOptions to control inheritance of RewriteRules from directories to subdirectories.

You can also include a test for directory level in the RewriteRules themselves.

Jim