CR Servers home
CR Servers home
HostingWeb Hosting
VPSVPS Servers
DedicatedDedicated Servers
ColocationColocation
Contact Us
HomeHomeServicesServicesDomainsDomains
Data CenterData Center

Network Connectivity

Power Infrastructure

Climate Control

Physical Security

SupportSupport

Open Support Ticket

Knowledge Base

Security Overview

Anti-Spam

Abuse Policy

AboutAbout Us

Partners

Privacy

InsightsIndustry Insights
  1. Home
  2. Support
  3. Knowledge base
  4. Hosting
  5. Edit the .htaccess file

​
​

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

  1. Open the file manager from the hosting control panel, or connect with FTP.
  2. Browse to public_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.

On this page

    Edit safely
    If the site breaks

Related articles

    Use the hosting file manager
    Create and manage FTP accounts
    SSL and dedicated IP on shared hosting
Back to HostingAll guides

Need hands-on help?

Open a ticket and a CR Servers engineer will follow up with clear next steps.

Open a support ticketContact sales

On this page

    Edit safely
    If the site breaks

Related articles

    Use the hosting file manager
    Create and manage FTP accounts
    SSL and dedicated IP on shared hosting

SERVICES

Web HostingDomainsVPS ServersColocationDedicated ServersResellersRefer a Friend

ABOUT CR SERVERS

About UsSupportClient AreaFAQTerms of ServicePrivacy PolicyData Center

Call us directly:

+506 2256-3944

#509 Trifami, Avenida 1, Calle 2

San José, Costa Rica.

Secure payment methods:
Copyright © 2026 CR Servers - Sistemas Edenia Internacional S.A. | All rights reserved