The .htaccess is a configuration file, and is how Apache handles configuration changes on a per-directory basis. This file helps to alter the configuration of the Apache Web Server in order to provide additional functionality such as
Save a copy of sample .htaccess file from this link Save (rename the downloaded file by removing the name text)
In case, you want to create one then use a standard notepad editor by following below instructions.