.htaccess is a configuration file that will be used on web servers using Apache Web Server. When a .htaccess file is inserted into a file that is also 'loaded by Apache Web Server', the .htaccess file is ready and made into Apache Web Server software.

 then .htaccess files can be used to modify & restrict Apache Web Server software configurations to enable/disable additional functionality and features that Apache Web Server has to offer. These services include basic redirect functionality, for example, in the event of a 404 error not being detected, or performing high-level functions such as content password protection or blocking and many more..