With an .htaccess file, you'll determine how the server that addresses the requests to your web sites should act a number of scenarios. This is a text file with directives that are carried out when somebody tries to open your Internet site and what happens next is determined by the content of the file. For instance, you can block a particular IP address from opening the website, so the server will decline your visitor’s request, or you can redirect your domain to some other URL, so the server will direct the visitor to the new web address. You could also use personalized error pages or preserve any part of your Internet 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.