.htaccess files provide a way to make configuration changes on a per-directory basis.It’s a file which contains one or more configuration directives, placed in a perticular directory.The directives written in .htaccess is applies to the directory it is placed and to the subdirectory.
General use of .htaccess file
SSI and executing CGI scripts.
Caution:- in order to use .htaccess file check AllowOverride directive is not set to none in the main configuration file.
Drawback of using .htaccess file.
Performance :- enabling .htaccess files makes server request slow since it check for each and every directory for the .htacces file.
Security :- it allow users to change configuration which has no control.Specify exactly what should be allowed in AllowOverride directive.