With an .htaccess file, you'll define how the web server which manages the requests to your websites must act a number of cases. This is a text file with directives that are carried out when an individual tries to open your website and what happens next is determined by the content of the file. For example, you could block a particular IP address from opening the Internet site, therefore the server will decline the visitor’s request, or you can redirect your domain to some other URL, so the server may direct the visitor to the new web address. You could 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 widely used script-driven apps, such as Drupal™, Joomla™ and WordPress, use an .htaccess file to function efficiently.