With an .htaccess file, you shall determine how the web server which manages the requests to your web sites have to act in different cases. This is a text file with directives that are executed when someone tries to open your Internet site and what happens next is determined by the content of the file. For instance, you may block a certain IP address from opening the site, which means that the server will decline the visitor’s request, or you can forward your domain name to an alternative URL, so the server will redirect the visitor to the new web address. You can also use customized error pages or preserve any part of your site with a password, if you place an .htaccess file in the correct folder. Many well-known script-driven applications, like WordPress, Drupal and Joomla, use an .htaccess file to work correctly.
.htaccess Generator in Hosting
We have an intuitive .htaccess generator tool that will allow you to set up and use this type of files without trouble even if you have zero previous experience and you do not know the syntax of the specific directives for such a file. The tool is part of the Hepsia CP, included with our hosting plans and any option inside it could be enabled by picking acheckbox and eventually by typing a username or a URL, based on what exactly you need to do with the .htaccess file. You can also decide where the file should be created, so you will not have to do anything manually after or before that. By using an .htaccess file, you'll be able to select the PHP version that'll be enabled for a specific domain, even if it's not the same version as the one for the entire account.