Hidden files not displayed in FTP file list

Updated at:

When you connect to your web hosting using an FTP client, hidden files are not displayed by default in the remote site's file list for security reasons. You can resolve this by changing a setting in your FTP client to force hidden files to appear. This topic describes the cause of this issue and how to resolve it.

Symptom

After you connect to Linux-based web hosting using an FTP client, the Remote Site pane does not display hidden files in its file list.

For example, if you use a .htaccess file (a hidden file) to configure a rewrite rule on your Linux-based web hosting, you may not find the .htaccess file when you need to modify the rule.

Possible causes

On Linux-based web hosting, files and directories with names that begin with a dot (.), such as the .htaccess file, are treated as hidden files. For security reasons, by default FTP clients do not display hidden files after you connect to web hosting.

Note

On Windows-based web hosting, files with the 'hidden' or 'system' attribute are also considered hidden files. You can use the solution in this topic to display them.

Solution

This procedure uses the hidden .htaccess file as an example to show you how to configure your FTP client to display hidden files.

  1. Connect to Linux-based web hosting.

    For details, see Manage website files using FileZilla.

    Note

    This topic uses FileZilla version 3.51.0 as an example. The user interface (UI) may vary by version.

  2. In the file list of the Remote Site pane, check whether the .htaccess file is visible.TB1GvweKVXXXXa0XFXXXXXXXXXX.png

    • If the file is visible, no further action is required.

    • If the .htaccess file is not visible, proceed to the next step.

  3. In the top menu bar, select Server > Force showing hidden files.

  4. In the Force showing hidden files dialog box, read the notes and then click OK.

  5. In the Remote Site pane, in the /htdocs directory, confirm that the hidden .htaccess file is now visible.