With an .htaccess file, you will specify how the web server that addresses the requests to your web sites have to act a number of scenarios. This is a text file with directives that are carried out when an individual tries to open your Internet site and what happens next will depend on the content of the file. For instance, you may block a certain IP address from opening your website, which means that the server will decline the visitor’s request, or you can forward your domain to an alternative URL, so the server will redirect the visitor to the new web address. Also you can use customized error pages or preserve any part of your site with a password, if you place an .htaccess file inside the correct folder. Many popular script-driven apps, including Drupal™, Joomla™ and WordPress, use an .htaccess file to function efficiently.