With an .htaccess file, you can define how the web server that manages the requests to your Internet sites have to act in a variety of occasions. This is a text file with directives that are performed when an individual tries to open your Internet site and what happens next will depend on the content of the file. As an example, you could block a certain IP address from accessing the site, so the server will decline your visitor’s request, or you can redirect your domain to a different URL, so the server will direct the visitor to the new web address. You could also use custom error pages or protect any part of your Internet site with a password, if you place an .htaccess file in the correct folder. Many widespread script-driven applications, like Drupal™, Joomla™ and WordPress, use an .htaccess file to function efficiently.
