I have a webserver with thousands of directories. Some need to be internal only, some need to reference specific IP addresses, some are public. These
.htaccess files change from time to time with IP addresses and blocks being added and removed. Today, each directory (and many subdirectories) have their own
.htaccess file based on the traffic that's allowed to access it (some subdirectories don't have an
.htaccess file, they inherit the parent directory's
Is there a way to organize my directories and
.htaccess files so that I only have a few main
.htaccess files and each subdirectory can reference an
.htaccess based on what access they need?
public .htaccess restricted .htaccess private .htaccess dir1 subdir1 use "public .htaccess" subdir2 use "public .htaccess" subsubdir1 use "private .htaccess" subdir3 use "restricted .htaccess"