... When (not) to use .htaccess files . ... Server side includes example . ... Require .htaccess files (or "distributed configuration files") provide a way to make configuration changes on a per-directory basis. ... Note that it is completely equivalent to put a .htaccess file in a directory /www/htdocs/example containing a directive, and to put that same directive in a Directory section <Directory /www/htdocs/example> in your main server configuration: .htaccess file in /www/htdocs/example : . ...
... Directives | ... Apache HTTP Server Version 2.2 . Apache > HTTP Server > Documentation > Version 2.2 > How-To / Tutorials . ... pt-br .htaccess files provide a way to make configuration changes on a per-directory basis.htaccess files . ... htaccess . ... Putting authentication directives in a <Directory> section, in your main server configuration file, is the preferred way to implement this, and .htaccess files should be used only if you don't have access to the main server configuration file. ...