With an .htaccess file, you shall define how the server that handles the requests to your web sites must act in different occasions. This is a text file with directives that are performed when someone tries to open your Internet site and what happens next depends on the content of the file. For example, you can block a certain IP address from opening the website, and the server will decline your visitor’s request, or you can redirect your domain to an alternative URL, so the server will redirect the visitor to the new web address. You may also use custom error pages or preserve any part of your Internet site with a password, if you place an .htaccess file in the correct folder. Many widespread script-driven apps, such as WordPress, Drupal™ and Joomla™, use an .htaccess file to function efficiently.