With an .htaccess file, you shall define how the web server which addresses the requests to your websites should act in different occasions. This is a text file with directives that are performed when an individual tries to open your website and what happens next is determined by the content of the file. As an example, you may block a specific IP address from accessing the Internet site, and the server will decline your visitor’s request, or you can forward your domain to another URL, so the server will redirect the visitor to the new web address. You may also use tailor-made error pages or shield any part of your site with a password, if you place an .htaccess file inside the correct folder. Many well-known script-driven apps, such as Joomla™, WordPress and Drupal™, use an .htaccess file to work correctly.