With an .htaccess file, you'll specify how the web server which addresses the requests to your Internet sites have to act a number of situations. This is a text file with directives that are carried out when someone tries to open your site and what happens next is determined by the content of the file. As an example, you may block a certain IP address from opening the website, therefore the server will decline your visitor’s request, or you can redirect your domain name to another URL, so the server will redirect the visitor to the new web address. You could also use custom-made error pages or preserve any part of your website with a password, if you place an .htaccess file inside the correct folder. Many widespread script-driven apps, like WordPress, Drupal™ and Joomla™, use an .htaccess file to function efficiently.