How do I show hidden files (like .htaccess) in File Manager? Print

  • 0

Hidden files start with a dot (such as .htaccess) and are not shown by default. To reveal them:

  1. Log in to cPanel and open File Manager.
  2. Click Settings in the top-right corner.
  3. Tick Show Hidden Files (dotfiles).
  4. Click Save.

Your hidden files now appear in the listing, and you can edit them like any other file (right-click and choose Edit). This is the usual way to access .htaccess for redirects, rewrites, and PHP settings, or .env files for apps. Remember that .htaccess affects the folder it sits in and below, so place it in public_html for site-wide rules. Always keep a copy before editing in case you need to undo a change.


Was this answer helpful?

« Back