With an .htaccess file, you'll determine how the server which deals with the requests to your web sites must act a number of cases. This is a text file with directives that are carried out when somebody tries to open your website and what happens next is determined by the content of the file. For example, you could block a specific IP address from opening the website, therefore the server will decline your visitor’s request, or you can forward your domain name to an alternative URL, so the server will direct the visitor to the new web address. Also you can use tailor-made error pages or shield any part of your website with a password, if you place an .htaccess file inside the correct folder. Many well-known script-driven applications, like WordPress, Joomla and Drupal, use an .htaccess file to function efficiently.

.htaccess Generator in Web Hosting

If you obtain any of our web hosting plans, you can benefit from our intuitive .htaccess generator tool, that is part of the Hepsia Control Panel. You'll not need to know what syntax the different directives in this kind of a file must have, as our tool is super easy to use and you'll only need to check boxes or enter URLs, so you can certainly use an .htaccess file even if you have never had a website hosting account before. Our .htaccess generator gives a substantial amount of options - you can block IP addresses, set the first page that loads when someone opens your site, create password protection, redirect a domain to another web address, enable PHP in HTML files, enable Server Side Includes, and much more. You shall even be able to set a different PHP version for each of your Internet sites.