With an .htaccess file, you shall determine how the web server that handles the requests to your websites should act in different cases. This is a text file with directives that are performed when an individual tries to open your Internet site and what happens next will depend on the content of the file. As an example, you could block a particular IP address from accessing your website, so the server will decline the visitor’s request, or you can redirect your domain name to some other URL, so the server will redirect the visitor to the new web address. Also you can use personalized error pages or secure any part of your website with a password, if you place an .htaccess file inside the correct folder. Many widely used script-driven apps, including Joomla, Drupal and WordPress, use an .htaccess file to work efficiently.
.htaccess Generator in Shared Hosting
When you obtain any of our shared hosting plans, you can take full advantage of our easy-to-use .htaccess generator tool, that is part of the Hepsia CP. You won't need to know what syntax the different directives in such a file should have, since our tool is easy to use and you will only have to check boxes or input URLs, so you can use an .htaccess file even if you have never had a hosting account before. Our .htaccess generator gives a substantial amount of options - you can block IP addresses, set the first page that loads when an individual opens your Internet site, set up password protection, forward a domain to another web address, enable PHP in HTML files, enable Server Side Includes, and much more. You shall even be able to set a different PHP version for each of your websites.