Edit the .htaccess file

Open or create .htaccess in your site's html folder to add redirects or access rules. Keep a copy first, and edit it with FTP or the file manager.

.htaccess is a text file in the site's document root, the html folder (yourdomain.com/html). The web server reads it for redirects, HTTPS, and simple access rules. A bad line can take the whole site offline.

Edit safely

  1. Open the file manager from the hosting control panel, or connect with FTP.
  2. Browse to yourdomain.com/html (or that site's document root).
  3. Download or copy the current .htaccess before you change it. Hidden-file view may be required.
  4. Edit, save, and load the site at once. If you get a server error, restore the copy.

Typical uses: redirect http → https after SSL, send an old path to a new one, or deny a directory. Do not paste a full config from another host without reading it.

If the site breaks

Restore the backup file. Do not delete system folders next to .htaccess while you troubleshoot.

Open a ticket if you cannot recover the site — include the domain and what you changed.