With an .htaccess file, you'll determine how the web server which addresses the requests to your websites should act in a variety of cases. This is a text file with directives that are carried out when an individual tries to open your Internet site and what happens next will depend on the content of the file. For instance, you could block a particular IP address from opening the website, so the server will decline your visitor’s request, or you can forward your domain to an alternative URL, so the server may redirect the visitor to the new web address. You can also use customized error pages or preserve any part of your website with a password, if you place an .htaccess file inside the correct folder. Many popular script-driven applications, like Joomla™, Drupal™ and WordPress, use an .htaccess file to function correctly.