With an .htaccess file, you can determine how the web server that addresses the requests to your web sites have to act in a variety of occasions. This is a text file with directives that are performed when an individual tries to open your site and what happens next depends on the content of the file. For instance, you may block a specific IP address from opening the Internet site, which means that the server will decline your visitor’s request, or you can redirect your domain name to a different URL, so the server may redirect the visitor to the new web address. You may also use personalized error pages or protect any part of your website with a password, if you place an .htaccess file in the correct folder. Many widely used script-driven apps, including WordPress, Joomla™ and Drupal™, use an .htaccess file to work correctly.