You may be wondering why you cannot see an .htaccess file on your server when using WS_FTP or Cute FTP. Perhaps you checked the server and didn’t see the file, so you created one and transferred it, only to find that it does not appear to be there. We can show you how to display this file name using a couple of popular FTP utilities.
An .htaccess file is normally hidden on a Unix or Linux server because the dot (.) designates the file as a system file. The idea is to protect files that can be sensitive from the eyes of hackers. As a matter of fact, the .htaccess name does not conform to typical file naming standards because it is more of a file extension without a name. Nonetheless, Unix based systems hide files like .htaccess and .htpasswd from normal access and viewing in order to protect them.
Getting these files to display using either Ipswitch’s WS_FTP or GlobalSCAPE’s CuteFTP is fairly simple. Just follow the instructions below.
Displaying .htaccess with WS_FTP
- Open WS_FTP
- Click Connect
- Select the site you wish to modify and right-click on the site
- Click Properties
- Select the Startup tab
- Enter -a in the Remote File Mask box
- Click OK to confirm the changes
Your hidden files should now be visible when you connect to the site. I don’t know of a way to set this as a the default setting in WS_FTP, so you will probably have to set this mask manually for each Web site you have set up in WS_FTP.
Displaying .htaccess with CuteFTP
- Open CuteFTP
- Click the Site Manager tab
- Select the site you wish to modify
- Select File, then Properties (when in CuteFTP Professional)
- Select the Actions tab
- Click the Filter button
- Check the Enable Remote Filters check box
- Check the Enable server side filtering check box
- Enter -a in the Remote field
- Click OK
Your hidden files should now be visible when you connect to the server.
One word of caution when working with the .htaccess file. This file must be a clean text file in order to operate properly. Do not use a word processor to create or modify this file. If you use Microsoft Windows, work on this file with Notepad. If you are using Linux or Unix, use a text editor.