With an .htaccess file, you'll specify how the web server which deals with the requests to your web sites should act in different occasions. This is a text file with directives that are executed when someone tries to open your website and what happens next is determined by the content of the file. For instance, you could block a specific IP address from opening the website, and the server will decline your visitor’s request, or you can redirect your domain to a different URL, so the server may redirect the visitor to the new web address. You can also use customized error pages or secure any part of your Internet site with a password, if you place an .htaccess file inside the correct folder. Many well-known script-driven applications, including WordPress, Joomla™ and Drupal™, use an .htaccess file to function properly.