I work in a situation where I have a main website located in ~/www . I have several subdomains hosted in ~/www/__subdomains . Basically webroot, I have a .htaccess file that does a bit of correspondence. In my two subdomains, I have similar .htaccess , and these subdomains respond correctly.
In 2 other recently created subdomains, I have .htaccess files that are empty, stored for the AddHandler directive. I find that the root existence / content .htaccess file affects these 2 subdomains. They throw 500 errors. Once I rename this, broken subdomains work.
This of course tears apart other sites, so I can't just take it off, but it breaks my understanding of how .htaccess recursion works. I thought that as long as there is a .htaccess file in a subdirectory, those in the ancestral directories will never be executed.
Itβs clear that Iβm wrong about this, so I hope someone can educate me and help me fix it.
Thanks.
source share