With an .htaccess file, you will determine how the web server that manages the requests to your web sites must act in a variety of scenarios. This is a text file with directives that are performed when an individual tries to open your site and what happens next is determined by the content of the file. As an illustration, you could block a particular IP address from opening the site, and the server will decline the visitor’s request, or you can redirect your domain to a different URL, so the server may direct the visitor to the new web address. Also you can use customized error pages or protect any part of your website with a password, if you place an .htaccess file in the correct folder. Many widely used script-driven apps, like Drupal™, Joomla™ and WordPress, use an .htaccess file to function efficiently.