A .htaccess file is a configuration file that is placed inside the web tree, and configures access control (eg requiring a password to access the content) and other configuration settings, mostly related to content control.
.htaccess file is a feature provided by The Apache web server, that provides commands to control a web site.This file is simply a text file containing Apache directives.