With an .htaccess file, you'll define how the web server that addresses the requests to your Internet sites have to act in a variety of occasions. This is a text file with directives that are executed when someone tries to open your Internet site and what happens next depends on the content of the file. As an example, you could block a specific IP address from opening your website, so the server will decline the visitor’s request, or you can forward your domain to some other URL, so the server will direct the visitor to the new web address. You may also use customized error pages or preserve any part of your Internet site with a password, if you place an .htaccess file inside the correct folder. Many popular script-driven apps, including Drupal™, Joomla™ and WordPress, use an .htaccess file to work correctly.