With an .htaccess file, you'll determine how the web server which addresses the requests to your websites have to act a number of situations. This is a text file with directives that are performed when somebody tries to open your Internet site and what happens next depends on the content of the file. As an illustration, you may block a certain IP address from accessing the website, and the server will decline your visitor’s request, or you can forward your domain name to an alternative URL, so the server will redirect the visitor to the new web address. You could 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 applications, like WordPress, Drupal™ and Joomla™, use an .htaccess file to work correctly.