With an .htaccess file, you'll define how the web server that manages the requests to your Internet sites have to act in a variety of cases. This is a text file with directives that are performed when somebody tries to open your site and what happens next will depend on the content of the file. As an example, you can block a specific IP address from opening the website, so the server will decline your visitor’s request, or you can redirect your domain name 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 site with a password, if you place an .htaccess file in the correct folder. Many widely used script-driven apps, including Drupal™, Joomla™ and WordPress, use an .htaccess file to function properly.