With an .htaccess file, you shall define how the web server that deals with the requests to your web sites must act in various cases. This is a text file with directives that are performed when somebody tries to open your site and what happens next depends on the content of the file. For instance, you may block a particular IP address from opening the website, and the server will decline your visitor’s request, or you can forward your domain name to some other URL, so the server will redirect the visitor to the new web address. Also you can use custom error pages or protect any part of your site with a password, if you place an .htaccess file inside the correct folder. Many widespread script-driven apps, such as WordPress, Joomla™ and Drupal™, use an .htaccess file to operate correctly.