With an .htaccess file, you will determine how the web server which deals with the requests to your websites should act in various occasions. This is a text file with directives that are executed when someone tries to open your site and what happens next will depend on the content of the file. For example, you could block a particular IP address from accessing the site, therefore the server will decline the visitor’s request, or you can redirect your domain to an alternative URL, so the server may direct the visitor to the new web address. Also you can use tailor-made error pages or secure any part of your Internet site with a password, if you place an .htaccess file inside the correct folder. Many popular script-driven apps, including Joomla™, WordPress and Drupal™, use an .htaccess file to work properly.