With an .htaccess file, you'll define how the server which deals with the requests to your websites have to act in different situations. This is a text file with directives that are performed when somebody tries to open your website and what happens next will depend on the content of the file. As an example, you could block a specific IP address from accessing the Internet site, so the server will decline your visitor’s request, or you can redirect your domain to another URL, so the server will direct the visitor to the new web address. Also you can use customized error pages or secure any part of your Internet site with a password, if you place an .htaccess file inside the correct folder. Many popular script-driven apps, such as WordPress, Joomla™ and Drupal™, use an .htaccess file to function correctly.