Question background:
I have an Apache 2.4 virtual host environment hosting multiple websites in the following Ubuntu file hierarchy:
- /var/www/site-1-folder
- /var/www/site-2-folder
- /var/www/site-3-folder ...etc
There is a global .htaccess file in
- /var/www
and individual .htaccess files in each
- /var/www/site-folder
My question: Is there an upper hierarchical limit to the Apache's .htaccess file placement?
For example: Could I place a Wordpress .htaccess set of directives in the root /var/www folder and have it applied to all the sub-folders (being individual virutal sites running Wordpress)?
I am asking because directives set in the 'global' .htaccess file don't seem to work as expected and I would like to know if either my syntax is incorrect, it is not possible, or there is an alternative.
Thanks in advance!