What is .htaccess?


Htaccess is short for Hypertext Access. It is a configuration file used by apache-based web servers.

Configuration files configure the initial settings of a program, or in this case the server. This means that the .htaccess file can be used to make the server behave in a certain way. Each function is basically just a line of text, or code, which tells the server what to do. You can add or change functionality by adding or changing the code in the .htaccess file.

What can I use .htaccess for?

There are a lot of possibilities with .htaccess, you can, for example, use it to:

  • Protect your site with a password.
  • Create a custom-made error page.
  • Redirect visitors to another page.

The format of .htaccess

Htaccess is a very powerful tool. The .htaccess file is a bit special because it begins with a dot. This means that in some FTP programs it is hidden and you generally cannot edit it on your computer without renaming it to for example htaccess.txt. We recommend using our built-in File Manager to manage your .htaccess files.

Create a new .htaccess file

First, you need to create a .htaccess file. If one already exists on your web space, you can edit that one.

  1. Log in to your Control Panel and open File Manager.
  2. Click Create, choose File and then Other.
  3. Name the file .htaccess and press Enter on your keyboard.
  4. Select the .htaccess file and click Edit.

Leave a Reply

Your email address will not be published. Required fields are marked *

2 × one =