With an .htaccess file, you'll specify how the web server that handles the requests to your Internet sites have to act a number of occasions. This is a text file with directives that are performed when somebody tries to open your Internet site and what happens next will depend on the content of the file. For instance, you could block a certain IP address from opening the website, therefore the server will decline the visitor’s request, or you can redirect your domain name to another URL, so the server may redirect the visitor to the new web address. You could also use personalized error pages or preserve any part of your site with a password, if you place an .htaccess file inside the correct folder. Many widespread script-driven applications, including Joomla™, Drupal™ and WordPress, use an .htaccess file to operate properly.