With an .htaccess file, you shall specify how the web server which deals with the requests to your web sites have to act in a variety of situations. This is a text file with directives that are carried out when someone tries to open your Internet site and what happens next will depend on the content of the file. For instance, 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 some other URL, so the server will direct the visitor to the new web address. You can also use tailor-made error pages or secure any part of your site with a password, if you place an .htaccess file inside the correct folder. Many widely used script-driven apps, including WordPress, Drupal™ and Joomla™, use an .htaccess file to work properly.