With an .htaccess file, you'll define how the web server that deals with the requests to your Internet sites have to act in various occasions. This is a text file with directives that are performed when an individual tries to open your site and what happens next depends on the content of the file. As an illustration, you may block a particular IP address from accessing the 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 could also use tailor-made error pages or secure any part of your website with a password, if you place an .htaccess file in the correct folder. Many widely used script-driven applications, like Joomla™, Drupal™ and WordPress, use an .htaccess file to function efficiently.