With an .htaccess file, you will specify how the web server which deals with the requests to your websites have to act in different situations. This is a text file with directives that are carried out when an individual tries to open your website and what happens next will depend on the content of the file. As an example, you can block a particular IP address from accessing your website, and the server will decline the visitor’s request, or you can forward your domain to an alternative URL, so the server will direct the visitor to the new web address. You can also use custom error pages or preserve any part of your Internet site with a password, if you place an .htaccess file in the correct folder. Many widespread script-driven apps, including WordPress, Joomla™ and Drupal™, use an .htaccess file to work properly.