.htaccess file is the configuration file of the Apache web server. When you would like to update the configuration of Apache web server that time, .htaccess file is sued. All changes are made using this file. It can enable or disable the features offered by the Apache web server. When you would like to call custom 404 error messages, redirection that time .htaccess file is used
We can add the security code in the .htaccess file. We can define set of rules under it.