DOCS

.htaccess basics

What .htaccess is, how to edit it safely and examples of common rules.

Actualizado el 05.10.2026. 2 min de lectura

.htaccess is a configuration file in the site folder that changes server behaviour for that folder: redirects, protection, caching and the like. Our server uses LiteSpeed, which understands most Apache rules.

How to edit it#

  1. In File Manager open Settings and enable Show Hidden Files (dotfiles).
  2. Open the site folder (e.g. public_html) and find .htaccess. If it does not exist, create it with + File.
  3. Before editing, right-click → Copy and save the copy as .htaccess-old.
  4. Right-click → Edit, change and save.
  5. Refresh the site immediately. If an error appears, restore the copy.

Examples#

Redirect an old page to a new one:

apache
Redirect 301 /old-page https://yourdomain.com/new-page

Forbid listing a folder's contents:

apache
Options -Indexes

A custom page for the 404 error:

apache
ErrorDocument 404 /404.html

¿Te ha resultado útil este artículo?

Artículos relacionados

Still need a hand?

Open a ticket and we will reply by email. The whole team sees your request.