With an .htaccess file, you'll specify how the server which addresses the requests to your Internet sites must act in various occasions. This is a text file with directives that are carried out when someone tries to open your site and what happens next depends on the content of the file. As an example, you may block a certain IP address from accessing the Internet site, and the server will decline your visitor’s request, or you can forward your domain to some other URL, so the server may direct the visitor to the new web address. You could also use custom-made error pages or secure any part of your website with a password, if you place an .htaccess file in the correct folder. Many widespread script-driven apps, including WordPress, Drupal™ and Joomla™, use an .htaccess file to operate efficiently.