With an .htaccess file, you shall define how the server which deals with the requests to your Internet sites have to act in different situations. This is a text file with directives that are carried out when somebody tries to open your website and what happens next will depend on the content of the file. As an example, you could block a specific IP address from accessing your website, therefore the server will decline your visitor’s request, or you can forward your domain to some other URL, so the server may direct the visitor to the new web address. You may 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 well-known script-driven apps, like WordPress, Joomla and Drupal, use an .htaccess file to work efficiently.

.htaccess Generator in Hosting

When you get any of our hosting packages, you can benefit from our user-friendly .htaccess generator tool, that's part of the Hepsia CP. You won't need to know what syntax the different directives in this type of a file should have, since our tool is very easy to use and you'll only have to check boxes or type in URLs, so you can certainly use an .htaccess file even in case you have never had a website hosting account before. Our .htaccess generator gives a large amount of options - you could block IP addresses, set the first page that loads when a person opens your website, create password protection, forward a domain to another web address, enable PHP in HTML files, enable Server Side Includes, plus much more. You will even be able to set a different PHP version for each of your Internet sites.

.htaccess Generator in Semi-dedicated Servers

Our semi-dedicated server plans come with an .htaccess generator tool, that is simple enough to be used by people with zero previous experience. You'll be able to access it using your Hepsia CP and benefit from a user-friendly interface to enable any option you need. As soon as you pick the folder in which our system will create the .htaccess file, you only need to check the boxes beside the options that you would like to activate, then save the changes and you shall be good to go. The one thing you shall have to input by hand shall be a URL - if you'd like to use the .htaccess file to redirect one of your domains/subdomains to an alternative address or if you prefer to use personalized error pages. Our platform shall also allow you to set the PHP version that a website will use by adding an .htaccess file in its root folder, regardless if your account in general uses a different version.