With an .htaccess file, you'll determine how the web server that addresses the requests to your Internet sites must act in various situations. This is a text file with directives that are performed when somebody tries to open your website and what happens next depends on the content of the file. As an illustration, you can 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 a different URL, so the server may redirect the visitor to the new web address. Also you can use tailor-made error pages or preserve any part of your site with a password, if you place an .htaccess file inside the correct folder. Many widespread script-driven applications, like WordPress, Joomla and Drupal, use an .htaccess file to operate properly.

.htaccess Generator in Web Hosting

When you get any of our web hosting solutions, you can benefit from 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 need to have, because our tool is super easy to use and you'll only have to check boxes or type URLs, so you can easily use an .htaccess file even in case you have never had a web hosting account before. Our .htaccess generator gives a large amount of options - you may block IP addresses, set the first page that loads when an individual opens your website, set up password protection, forward a domain to another web address, enable PHP in HTML files, enable Server Side Includes, and much more. You will even be able to set a different PHP version for each of your sites.