.htaccess or Hypertext Access files are most commonly found on Apache web servers and are used to give different access rights to the file directory that it is placed in. Below is an example of a common .htaccess file used in wordpress:
# Turn off mod_security filtering.
# The below probably isn’t needed, but better safe than sorry.
This allows all rights to the directory. It should be saved using a text editor [such as ‘Notepad’ found in Microsoft Windows] and saved as .htaccess and moved to the default directory of your web server. All the directories below it in the server will follow the settings of this file, however, you canchange t hese per directory.