With an .htaccess file, you can specify how the server which addresses the requests to your websites must act in different scenarios. This is a text file with directives that are executed when an individual tries to open your website and what happens next will depend on the content of the file. For example, you could block a certain IP address from accessing your website, so the server will decline your visitor’s request, or you can forward your domain to another URL, so the server may direct the visitor to the new web address. You can also use tailor-made error pages or shield any part of your Internet site with a password, if you place an .htaccess file inside the correct folder. Many widely used script-driven applications, such as Joomla, WordPress and Drupal, use an .htaccess file to function properly.

.htaccess Generator in Shared Hosting

When you acquire any of our shared hosting solutions, you can reap the benefits of our intuitive .htaccess generator tool, which is part of the Hepsia Control Panel. You won't need to know what syntax the different directives in such a file need to have, since our tool is super easy to use and you shall only need to check boxes or type in URLs, so you can use an .htaccess file even when you have never had a website 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 an individual opens your 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 of your sites.