Last Updated on
A . htaccess file is a directory-level configuration file supported by several web servers, that allows for decentralized management of web server configuration. They are placed inside the web tree, and are able to override a subset of the server‘s global configuration for the directory that they are in, and all sub-directories. The original purpose of . htaccess—reflected in its name—was to allow per-directory access control, by for example requiring a password to access the content.