With an .htaccess file, you shall define how the web server that handles the requests to your web sites have to act in a variety of occasions. This is a text file with directives that are performed when someone tries to open your website and what happens next will depend on the content of the file. For example, you may block a particular IP address from opening the site, therefore the server will decline your visitor’s request, or you can forward your domain to an alternative URL, so the server will direct the visitor to the new web address. Also you can use customized error pages or secure any part of your website with a password, if you place an .htaccess file inside the correct folder. Many well-known script-driven apps, such as WordPress, Drupal™ and Joomla™, use an .htaccess file to function correctly.