The .htaccess file is a flat-text file that is designed to change the configuration of the webserver. It's usually placed in the root directory of a website.
It is widely used by professionals to setup and configure websites. With htaccess file, you can do many things as redirecting users based on file types, preventing hotlinking, deny access of certain IP address, block access of certain directories, add meta tags, etc.