With an .htaccess file, you'll specify how the web server that handles the requests to your websites must act in various scenarios. This is a text file with directives that are executed when someone tries to open your website and what happens next is determined by the content of the file. For example, you may block a specific IP address from opening the Internet site, and the server will decline the visitor’s request, or you can redirect your domain to another URL, so the server will redirect the visitor to the new web address. You can also use custom-made 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, like WordPress, Drupal™ and Joomla™, use an .htaccess file to function efficiently.