Skip to content

What Is the .htaccess File? Print

  • 0

.htaccess is a settings file for the web server. It sits in your website's folder (for example public_html) and controls things like redirects, HTTPS, caching and access rules.

Find and edit it

  1. Open cPanel, then File Manager.
  2. Click Settings and tick Show Hidden Files, because the name starts with a dot.
  3. Open your site's folder, right-click .htaccess and choose Edit.

Common uses

Be careful

A single typo can cause a "500 Internal Server Error" on the whole site. Always download a copy first, and if the site breaks, put the old copy back.

Need help? Open a support ticket or email support@anykey.sx.


Was this answer helpful?

« Back

Cookie Policy · Privacy Policy