With an .htaccess file, you can determine how the server which deals with the requests to your websites must act in a variety of occasions. This is a text file with directives that are carried out when an individual tries to open your site and what happens next depends on the content of the file. As an example, you may block a particular IP address from opening the site, which means that the server will decline the visitor’s request, or you can redirect your domain name to some other URL, so the server may direct the visitor to the new web address. You can also use tailor-made error pages or preserve any part of your website with a password, if you place an .htaccess file inside the correct folder. Many popular script-driven applications, including WordPress, Joomla™ and Drupal™, use an .htaccess file to work efficiently.