With an .htaccess file, you shall determine how the server which manages the requests to your websites have to act in different cases. This is a text file with directives that are executed when someone tries to open your website and what happens next will depend on the content of the file. For example, you could block a specific IP address from accessing the Internet site, so the server will decline your visitor’s request, or you can forward your domain to some other URL, so the server may direct the visitor to the new web address. You may also use custom-made error pages or shield any part of your website with a password, if you place an .htaccess file inside the correct folder. Many popular script-driven applications, including WordPress, Drupal and Joomla, use an .htaccess file to operate correctly.

.htaccess Generator in Web Hosting

When you acquire any of our web hosting packages, you can benefit from our intuitive .htaccess generator tool, that is part of the Hepsia CP. You won't need to know what syntax the various directives in this sort of a file must have, as our tool is very simple to use and you shall only need to check boxes or input URLs, so you can use an .htaccess file even if you have never had an Internet hosting account before. Our .htaccess generator gives a wide range of options - you could block IP addresses, set the first page that loads when somebody opens your Internet site, set up password protection, forward a domain to another web address, enable PHP in HTML files, enable Server Side Includes, and much more. You will even be able to set a different PHP version for each one of your sites.