How to show hidden files in cPanel

Files whose names start with a dot are hidden by default. One of them is .htaccess - web server settings for the site. You need to see hidden files to edit such a file, copy it together with the site, or find out why the site behaves oddly.

  1. Open "File Manager".
  2. Click "Settings" at the top right.
  3. Check "Show Hidden Files (dotfiles)".
  4. Click "Save".
Showing hidden files
Showing hidden files

Hidden files now appear in the list.

.htaccess in the list
.htaccess in the list

Common hidden files

File or folderWhat it is
.htaccessweb server settings for the folder: redirects, CMS pretty URLs, access rules
.user.iniPHP settings for the site folder
.envapplication passwords and keys (Laravel and other frameworks)
.well-knownfolder used to verify the domain when an SSL certificate is issued
.trashFile Manager trash in the home folder

Other File Manager preferences

In the same "Preferences" window:

  • "Always open this directory in the future by default" - where to start: "Home Directory", "Web Root (public_html or www)", "Public FTP Root (public_ftp)" or "Document Root for" one of your domains. Handy if you mostly work with one site.
  • "Disable Character Encoding Verification Dialogs" - open files in the editor without the encoding question. Do not turn it on if the account has sites in windows-1251: file editor.

Copy .htaccess before editing it (how to copy). A mistake in this file causes "500 Internal Server Error" on the whole site.

Do not delete or rename service folders in the home folder (.cpanel, .softaculous, .spamassassin and similar): they hold settings of the panel, the app installer and the spam filter.

Hidden files in an FTP client

FileZilla usually shows hidden files by itself. If .htaccess is not visible, turn on forced display of hidden files in the "Server" menu.

Questions and answers
Most likely it is hidden. Turn on "Show Hidden Files (dotfiles)" in the File Manager settings.
In "Settings", choose "Web Root (public_html or www)" and click "Save".
Better not: it is used to verify the domain when an SSL certificate is issued.