With an .htaccess file, you will specify how the web server that addresses the requests to your websites have to act in different occasions. This is a text file with directives that are performed when an individual tries to open your website and what happens next is determined by the content of the file. For example, you can block a specific IP address from accessing your website, therefore the server will decline the visitor’s request, or you can forward your domain name to another URL, so the server will redirect the visitor to the new web address. You may also use custom-made error pages or secure any part of your site with a password, if you place an .htaccess file inside the correct folder. Many widely used script-driven apps, such as Joomla™, WordPress and Drupal™, use an .htaccess file to function efficiently.