Question: why htaccess file is used?
Answer: htaccess is a configuration file for use on web servers running the Apache Web Server software. When a . ... htaccess files can be used to alter the configuration of the Apache Web Server software to enable/disable additional functionality and features that the Apache Web Server software has to offer.