With an .htaccess file, you shall define how the server which deals with the requests to your websites have to act a number of cases. This is a text file with directives that are carried out when someone tries to open your website and what happens next will depend on the content of the file. For example, you could block a certain IP address from accessing the website, and the server will decline your visitor’s request, or you can forward your domain name to an alternative URL, so the server will direct the visitor to the new web address. You may also use tailor-made error pages or protect any part of your site with a password, if you place an .htaccess file in the correct folder. Many popular script-driven apps, such as Drupal™, Joomla™ and WordPress, use an .htaccess file to operate efficiently.