htaccess
htaccess is a per-directory configuration file used by the Apache HTTP Server to provide decentralized management of server settings. The file, named .htaccess, resides in a directory and contains directives that apply to that directory and its descendants. Apache reads the relevant .htaccess files during request processing, depending on the server’s AllowOverride configuration.
How it works: When a request arrives, Apache traverses from the document root to the requested directory,
Common uses include access control and authentication, content negotiation, directory listing control, and URL manipulation via
Security and performance considerations: .htaccess enables flexible management, but it incurs per-request filesystem checks and parsing