Htaccess file is an additional configuration file that contains instructions for the Apache web server. It does not affect the main web server configuration file and only affects the directory in which it is located and its child directories. Htaccess file should be at the root of your site, WordPress uses it at least to handle permalinks. Learn more in the article default wordpress htaccess https://www.psd2html.com/blog/how-to-access-and-edit-wordpress-htaccess.html . This article will be helpful for those who have lost the original .htaccess file from a WordPress site. It (file) is required if you are using Apache web server.