Edit the .htaccess file
Open or create .htaccess under public_html to add redirects or access rules — keep a copy before you save, and use FTP or the file manager for the edit.
.htaccess is a text file in the site document root (public_html on most plans). The web server reads it for redirects, HTTPS, and simple access rules. A bad line can take the whole site offline.
Edit safely
- Open the file manager from the hosting control panel, or connect with FTP.
- Browse to
public_html(or that site’s document root). - Download or copy the current
.htaccessbefore you change it. Hidden-file view may be required. - 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.