With an .htaccess file, you can specify how the server which manages the requests to your web sites have to act a number of cases. This is a text file with directives that are executed when somebody tries to open your website and what happens next will depend on the content of the file. As an illustration, you may block a particular IP address from opening the site, and the server will decline your visitor’s request, or you can forward your domain
to some other URL, so the server may redirect the visitor to the new web address. You could also use tailor-made error pages or protect any part of your site with a password, if you place an .htaccess file in the correct folder. Many widely used script-driven applications, including Joomla™
and WordPress, use an .htaccess file to operate correctly.