With an .htaccess file, you shall define how the web server that manages the requests to your websites should act in a variety of situations. This is a text file with directives that are executed when someone tries to open your website and what happens next depends on the content of the file. As an example, you can block a particular IP address from accessing your website, therefore the server will decline your visitor’s request, or you can forward your domain name to an alternative URL, so the server may redirect 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 popular script-driven applications, such as WordPress, Drupal™ and Joomla™, use an .htaccess file to operate efficiently.