A.htaccess file is a directory-level configuration file supported by several web servers like Apache, it allows us have any configurations like redirect urls, rewrite urls, protect files, secure folders/files on server...etc.. very more functions can do with htaccess file. you can search to find functions that need for your requirements.