With an .htaccess file, you will define how the server that handles the requests to your websites must act in different situations. This is a text file with directives that are performed when someone tries to open your website and what happens next depends on the content of the file. For example, you may block a specific IP address from opening the website, therefore the server will decline your visitor’s request, or you can redirect your domain to a different URL, so the server will redirect the visitor to the new web address. You can also use tailor-made error pages or secure any part of your Internet site with a password, if you place an .htaccess file in the correct folder. Many popular script-driven applications, including Joomla™, Drupal™ and WordPress, use an .htaccess file to function efficiently.
