With an .htaccess file, you shall specify how the web server which manages the requests to your websites have to act in different occasions. This is a text file with directives that are carried out when somebody tries to open your site and what happens next will depend on the content of the file. As an example, you can block a particular IP address from accessing the Internet site, so the server will decline the visitor’s request, or you can redirect your domain name to a different URL, so the server may redirect the visitor to the new web address. You could also use tailor-made error pages or preserve any part of your site with a password, if you place an .htaccess file in the correct folder. Many widespread script-driven applications, including Joomla, WordPress and Drupal, use an .htaccess file to operate properly.

.htaccess Generator in Hosting

When you purchase any of our hosting solutions, you can benefit from our user-friendly .htaccess generator tool, that is part of the Hepsia Control Panel. You will not need to know what syntax the many directives in this sort of a file need to have, because our tool is easy to use and you shall only need to check boxes or input URLs, so you can use an .htaccess file even when you have never had a web hosting account before. Our .htaccess generator gives a large amount of options - you can block IP addresses, set the first page that loads when someone opens your website, set up password protection, redirect a domain to another web address, enable PHP in HTML files, enable Server Side Includes, plus much more. You'll even be able to set a different PHP version for each one of your websites.

.htaccess Generator in Semi-dedicated Servers

Our semi-dedicated server packages offer an .htaccess generator tool, which is easy enough to be used by people with zero previous experience. You'll be able to access it through your Hepsia CP and use an easy-to-use interface to activate any option you need. As soon as you select the folder where our system will create the .htaccess file, you simply need to check the boxes beside the options which you want to enable, then save the changes and you shall be ready. The one thing you'll have to enter manually will be a URL - if you wish to use the .htaccess file to redirect one of your domains/subdomains to another address or if you want to use customized error pages. Our platform shall also allow you to set the PHP version which a website will use by putting an .htaccess file inside its root folder, even if your account in general uses a different version.