The .htaccess file (or "distributed configuration file") provides a way to change the configuration for each directory, by placing a file containing directives in a specific directory, where the directives act on that directory and all its subdirectories.