The htaccess file is the default directory-level configuration file on Apache web servers. It is also known as a “distributed configuration file.” Configuration directives contained in the .htaccess file apply to the directory in which the file is placed as well as all of its subdirectories. Within the .htaccess file, settings such as authorisation and authentication, rewriting of URLs, cache control, and customised error responses can all be specified.