With an .htaccess file, you will define how the server that deals with the requests to your websites have to act in various situations. This is a text file with directives that are executed when someone tries to open your Internet site and what happens next will depend on the content of the file. As an example, you may block a specific IP address from accessing the website, so the server will decline the visitor’s request, or you can forward your domain to another URL, so the server may direct the visitor to the new web address. You may also use tailor-made error pages or preserve any part of your website with a password, if you place an .htaccess file inside the correct folder. Many widely used script-driven applications, such as Joomla™, WordPress and Drupal™, use an .htaccess file to work properly.
.htaccess Generator in Hosting
When you purchase any of our hosting
solutions, you can benefit from our user-friendly .htaccess generator tool, that is part of the Hepsia CP. You will not need to know what syntax the many directives in such a file need to have, because our tool is easy to use and you'll only need to check boxes or enter URLs, so you can use an .htaccess file even if you have never had a website hosting account before. Our .htaccess generator offers a substantial amount of options - you can block IP addresses, set the first page that loads when a person opens your Internet site, create password protection, redirect a domain to another web address, enable PHP in HTML files, enable Server Side Includes, and more. You will even be able to set a different PHP version for each one of your sites.