With an .htaccess file, you will determine how the web server that deals with the requests to your websites have to act a number of situations. 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 can block a specific IP address from opening your website, and the server will decline the visitor’s request, or you can forward your domain to some other URL, so the server will direct the visitor to the new web address. You could also use tailor-made error pages or secure 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, Joomla™ and Drupal™, use an .htaccess file to operate properly.