With an .htaccess file, you shall specify how the server that deals with the requests to your web sites should act a number of scenarios. This is a text file with directives that are executed when someone tries to open your site and what happens next is determined by the content of the file. For example, you can block a certain IP address from accessing your website, which means that the server will decline the visitor’s request, or you can redirect your domain name to a different URL, so the server may direct the visitor to the new web address. Also you can use custom error pages or secure any part of your website with a password, if you place an .htaccess file inside the correct folder. Many widely used script-driven apps, such as WordPress, Drupal™ and Joomla™, use an .htaccess file to function correctly.
