htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: keep htaccess command from applying to subdirectories
PostPosted: Jul 15th, '07, 20:17 
Offline

Joined: Jul 15th, '07, 19:52
Posts: 3
Is there any way to put a directive in an htaccess file and NOT have it apply to subdirectories, but just to the root directory that the file is in?


Top
 Profile  
 
 Post subject:
PostPosted: Aug 20th, '07, 15:02 
Offline

Joined: Feb 28th, '07, 17:16
Posts: 40
Yes but you need to modify the server config file httpd.conf..

Code:
<Directory ~ "^/home/.+">
AllowOverride None
</Directory>

<Directory /home/>
AllowOverride FileInfo
</Directory>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB