I'm trying to get Apache to ignore .htaccess files and rules in one subdirectoy (and all of its subsequent directories), but still allow them to execute in the parent, root directory. It seems like this works:
<Directory /home/user/test_domain_com/www/test>
AllowOverride None
</Directory>
However, the problem here is that if there is an .htaccess file in the root folder with certain rules, the subdirectoy will still be affected. (e.g., call test.php upon any request):
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ test.php [L]
This example still affects the directory that I want to ignore .htaccess rules on. Is it possible to not just ignore .htaccess files inside of this directory, but also ignore any .htaccess rules that may apply this directoy as well? Is there something I can add to the .conf file to accomplish this?
I hope that made sense.
Thanks
RewriteEngine off
x
to ignore any .htaccess rules that might interfere with it, whether those are .htaccess files are within thex
folder or whether they are rules in the parent folder that might affect folderx
. I want the .conf file to see that folderx
is an actual directory and prevent applying any re-write rules to it.