With an .htaccess file, you'll determine how the web server that addresses the requests to your websites should act a number of scenarios. This is a text file with directives that are performed when someone tries to open your site and what happens next will depend on the content of the file. As an example, you could block a specific IP address from opening your website, therefore the server will decline the visitor’s request, or you can redirect your domain name to an alternative URL, so the server will redirect the visitor to the new web address. You may also use personalized error pages or secure any part of your site with a password, if you place an .htaccess file inside the correct folder. Many widely used script-driven applications, like WordPress, Drupal™ and Joomla™, use an .htaccess file to operate efficiently.