With an .htaccess file, you shall determine how the web server which handles the requests to your websites should act in different situations. This is a text file with directives that are carried out when someone tries to open your website and what happens next will depend on the content of the file. For instance, you could block a particular IP address from accessing the Internet site, which means that the server will decline your visitor’s request, or you can forward your domain to another URL, so the server may redirect the visitor to the new web address. You can also use customized error pages or secure any part of your site with a password, if you place an .htaccess file inside the correct folder. Many widespread script-driven apps, like Joomla, Drupal and WordPress, use an .htaccess file to operate correctly.

.htaccess Generator in Web Hosting

When you acquire any of our web hosting solutions, you can reap the benefits of our intuitive .htaccess generator tool, that is part of the Hepsia CP. You will not need to know what syntax the various directives in this type of a file should have, since our tool is super easy to use and you'll only have to check boxes or enter URLs, so you can easily use an .htaccess file even in case you have never had a web hosting account before. Our .htaccess generator gives a large amount of options - you may block IP addresses, set the first page that loads when someone opens your Internet site, create password protection, forward a domain to another web address, enable PHP in HTML files, enable Server Side Includes, plus more. You'll even be able to set a different PHP version for each one of your websites.