It seems impossible. Since your .htaccess used only after your host is allowed by the root server configuration files, for example httpd.conf , apache2.conf .
Simply put, .htaccess in the www directory or in its subdirectories will only be processed after the root configuration files are processed.
I mean, you type http://host.name , and apache finds the destination and uses the .htaccess file on the host to perform some operations if necessary.
source share