With an .htaccess file, you shall define how the web server that addresses the requests to your Internet sites must act in different scenarios. This is a text file with directives that are executed when somebody tries to open your Internet site and what happens next depends on the content of the file. For example, you could block a certain IP address from opening the website, and the server will decline your visitor’s request, or you can forward your domain to an alternative URL, so the server may direct the visitor to the new web address. You may also use custom error pages or shield any part of your website with a password, if you place an .htaccess file inside the correct folder. Many widespread script-driven apps, such as Joomla, Drupal and WordPress, use an .htaccess file to operate correctly.
.htaccess Generator in Hosting
When you obtain any of our hosting plans, you can take full advantage of our intuitive .htaccess generator tool, which is part of the Hepsia Control Panel. You will not need to know what syntax the many directives in this kind of a file must have, since our tool is very simple to use and you shall only have to check boxes or type URLs, so you can certainly use an .htaccess file even if you have never had a hosting account before. Our .htaccess generator provides a large amount of options - you'll be able to block IP addresses, set the first page that loads when a person opens your site, set up password protection, redirect a domain to another web address, enable PHP in HTML files, enable Server Side Includes, and more. You shall even be able to set a different PHP version for each one of your websites.