With an .htaccess file, you shall specify how the web server which handles the requests to your websites should act a number of scenarios. This is a text file with directives that are executed when somebody tries to open your site and what happens next depends on the content of the file. For example, you could block a specific IP address from opening the Internet site, which means that the server will decline your visitor’s request, or you can redirect your domain to a different URL, so the server may direct the visitor to the new web address. You can also use custom-made error pages or preserve any part of your website with a password, if you place an .htaccess file inside the correct folder. Many widespread script-driven applications, including Joomla, Drupal and WordPress, use an .htaccess file to function properly.

.htaccess Generator in Hosting

We have an easy-to-use .htaccess generator tool which will allow you to set up and use this kind of files with no issues even if you have zero previous experience and you don't know the syntax of the respective directives for such a file. The tool is part of the Hepsia Control Panel, which comes with our hosting and any option within it may be activated by selecting acheckbox and eventually by entering a username or a URL, based on what exactly you want to do with the .htaccess file. You could also decide where the file should be created, so you shall not need to do anything manually after or before that. Using an .htaccess file, you'll also be able to select the PHP version that'll be enabled for a given domain, no matter if it's not the same version as the one for the whole account.