Forum Moderators: phranque
Ok, the matter at hand. Whilst trying to make my mind up whethet to put rules in .htaccess ot httpd.conf;
<Directory />
Options -All -Multiviews
AllowOverride None
<IfModule mod_access.c>
Order deny,allow
Deny from all
</IfModule>
</Directory>
I don't want a .htaccess file anywhere but the base directory, /var/www/html. So how do I now allow this please? I ask because I thought AllowOveride affects sub-directories too. Maybe a <Files > instead of <Directory > would work?
You might look into using DirectoryMatch, and specifying that subdirectories other than "/" have AllowOverride FileInfo disabled. Another way to do it might be to deny setting Options +FollowSymLinks in those subdirectories by denying AllowOverride Options. Either setting will disable mod_rewrite.
I've never tried DirectoryMatch for this purpose, but it might work.
Jim