With an .htaccess file, you will define how the web server which addresses the requests to your web sites should act in various scenarios. This is a text file with directives that are carried out when somebody tries to open your website and what happens next depends on the content of the file. For example, you could block a particular IP address from accessing the website, so the server will decline the visitor’s request, or you can forward your domain to some other URL, so the server may redirect the visitor to the new web address. You can also use custom error pages or secure any part of your website with a password, if you place an .htaccess file in the correct folder. Many popular script-driven apps, including Joomla™, Drupal™ and WordPress, use an .htaccess file to work efficiently.