With an .htaccess file, you'll determine how the server that deals with the requests to your web sites must act in a variety of scenarios. This is a text file with directives that are carried out when an individual tries to open your website and what happens next depends on the content of the file. For instance, you can block a certain IP address from accessing the website, and the server will decline the visitor’s request, or you can redirect your domain to some other URL, so the server may direct the visitor to the new web address. You can also use customized error pages or secure any part of your website with a password, if you place an .htaccess file in the correct folder. Many well-known script-driven applications, including Drupal™, Joomla™ and WordPress, use an .htaccess file to function efficiently.