With an .htaccess file, you shall determine how the server which deals with the requests to your websites should act in different occasions. This is a text file with directives that are carried out when somebody tries to open your site and what happens next will depend on the content of the file. For instance, you could block a specific IP address from accessing your website, which means that the server will decline your 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. You could also use tailor-made error pages or shield any part of your website with a password, if you place an .htaccess file in the correct folder. Many widely used script-driven apps, including WordPress, Drupal™ and Joomla™, use an .htaccess file to operate correctly.