With an .htaccess file, you will determine how the web server which deals with the requests to your Internet sites should act in a variety of scenarios. This is a text file with directives that are performed when an individual tries to open your Internet site and what happens next depends on the content of the file. As an illustration, you can block a certain IP address from accessing the website, so the server will decline the visitor’s request, or you can redirect your domain to an alternative URL, so the server may direct the visitor to the new web address. Also you can use personalized error pages or protect 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 WordPress, Drupal™ and Joomla™, use an .htaccess file to work efficiently.