Hidden files not displayed in FTP file list
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.
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.
-
Connect to Linux-based web hosting.
For details, see Manage website files using FileZilla.
NoteThis topic uses FileZilla version 3.51.0 as an example. The user interface (UI) may vary by version.
-
In the file list of the Remote Site pane, check whether the
.htaccessfile is visible.
-
If the file is visible, no further action is required.
-
If the
.htaccessfile is not visible, proceed to the next step.
-
-
In the top menu bar, select Server > Force showing hidden files.
-
In the Force showing hidden files dialog box, read the notes and then click OK.
-
In the Remote Site pane, in the
/htdocsdirectory, confirm that the hidden.htaccessfile is now visible.