With an .htaccess file, you shall define how the server that addresses the requests to your Internet sites must act a number of scenarios. This is a text file with directives that are carried out when somebody tries to open your website and what happens next will depend on the content of the file. For example, you can block a certain IP address from opening your website, therefore the server will decline your visitor’s request, or you can redirect your domain to another 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 site with a password, if you place an .htaccess file inside the correct folder. Many widespread script-driven apps, such as Joomla™, Drupal™ and WordPress, use an .htaccess file to function efficiently.