Tech-Evangelist

Technical Articles, Musings and Opinions from Tech-Evangelist

  • Home
  • About
  • Guidelines
Previous article: Mozilla Thunderbird – Changing the File Location with Windows XP
Next article: Important HTML Meta Tags

Display Hidden Files with WS_FTP or CuteFTP

January 22, 2006 By Jonathan - Copyright - All Rights Reserved

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

  1. Open WS_FTP
  2. Click Connect
  3. Select the site you wish to modify and right-click on the site
    name
  4. Click Properties
  5. Select the Startup tab
  6. Enter -a in the Remote File Mask box
  7. 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

  1. Open CuteFTP
  2. Click the Site Manager tab
  3. Select the site you wish to modify
  4. Select File, then Properties (when in CuteFTP Professional)
  5. Select the Actions tab
  6. Click the Filter button
  7. Check the Enable Remote Filters check box
  8. Check the Enable server side filtering check box
  9. Enter -a in the Remote field
  10. 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.

Filed Under: Web Site Development

Comments

  1. Kurt says

    August 8, 2008 at 8:25 pm

    Thank you! I was going out of my mind trying to see that little file.

  2. Pankaj Sharma says

    October 8, 2008 at 12:19 am

    i ave done the processure, but unable to find .htaccess in ute FTP

  3. Doogie says

    October 15, 2008 at 1:01 pm

    perhaps you do not have an .htaccess file on your server. Windows servers cannot use them and hosting companies usually do not add an .htaccess file unless the web site is set up to use FrontPage extensions.

    .htaccess files only work on Unix and Linux servers running the Apache web server.

  4. Robert says

    November 20, 2008 at 1:10 pm

    There is no “OK” in ws_ftp pro…

  5. Doogie says

    November 21, 2008 at 6:12 am

    There is an OK button in the version that I am using. You have to be able to approve and save your changes.

  6. George says

    December 18, 2008 at 2:35 pm

    -a does not work on Cute FTP
    .htaccess will be seen only if you apply a filter with -rtaF

    CUTE FTP: You can display hidden files on servers using a special filter command. When configuring your filter, select Enable remote filters (Server applied filter). Type in -rtaF next to this field. Your listing command should now be LIST-rtaF, which will display of hidden files.

    Thank you any way for WS-FTP equivalent hint.

  7. Phil G. says

    May 30, 2009 at 9:52 am

    Maybe these things are (CuteFTP/WS-FTP) version dependent in how the FTP client executes the command when connected to a server (watching a packet capture would positively show the issue provided the connection is not encrypted).

    BUT, I am betting the switches that work are dependent on the FTP SERVER (and version) to which you are connecting. To positively find out which ones work, MANUALLY log in to the FTP server and try the switches.

    I *am* using CuteFTP 7.1 and “-a” works for my webhosting server (ProFTPD 1.3.1)
    I can see .htaccess (and other hidden files) without issue. I also tried -rtaF as George suggested AND that works as well. But that include the “-a” so I would expect it to.

    Here are the switches for ProFTPD:
    http://www.proftpd.org/docs/howto/ListOptions.html
    -a List all files including those whose names start with “.”
    -l Use a long listing format
    -r Sort filenames in reverse order
    -t Sort by modification time
    -F Append file type indicator (one of “*”, “/”, “=”, “@” or “|”) to names

    To find out the server used, you can manually connect to it or look in the log of your session.
    CuteFTP shows the following for me:

    STATUS:> Connecting to FTP server ftp.mydomain.com:21 (ip = 123.123.123.123)…
    STATUS:> Socket connected. Waiting for welcome message…
    220 ProFTPD 1.3.1 Server (Main FTP Server) [123.123.123.123]

    Then you may want to check your web hostings FTP server documentation to see which switches work for that server.

  8. Olaf says

    September 22, 2009 at 7:53 pm

    Thanks forever! Went crazy and spent too long finding this solution. Great!

  9. Brian says

    December 22, 2009 at 5:49 pm

    Thanks for this, I can now see htaccess.

    Cheers!

  10. webn says

    June 28, 2010 at 11:42 pm

    It helps me…Many thanks

  11. Jeff says

    July 16, 2010 at 5:56 am

    Many thanks.. could not figure out how to do this with WS_FTP and this worked perfectly! You’re a Saint! 🙂

  12. Bill Myers says

    February 19, 2011 at 10:48 am

    Jonathan,

    I use WS_FTP95 (WS_FTP LE), and while your instructions don’t exactly work for this particular version, they certainly lead me in the right direction, so thank you!

    If it matters for others, the following worked for me (thanks to Jonathan’s original instructions):

    1. Open WS_FTP95 (WS_FTP LE)
    2. Click Connect
    3. Select the site you wish to modify (Profile Name:)
    4. Click the Startup tab
    5. Enter -a in the Remote File Mask box
    6. Click OK to confirm the changes

    Thanks again Jonathan!

    Sincerely,
    Bill

  13. Jeff Ginger says

    January 8, 2012 at 5:51 pm

    Thank you!

  14. Treppenlift Andy says

    August 17, 2012 at 12:22 am

    You saved my day, CuteFTP 8.3.4.0007 worked for me. Now i can see my htaccess on the ded. Server with Plesk.

    Thank you!

Trackbacks

  1. Should I install Wordpress on the sub-folder or on the root-folder? Things to look out for when installing Wordpress says:
    November 21, 2009 at 7:24 pm

    […] Move index.php and .htaccess out of the WP installed sub directory into the root directory. Note:  some ftp client does not let you view the .htaccess file, check with your ftp software provider first! or some info can be found here. […]

Categories

  • Affiliate Marketing
  • CSS Tutorials
  • FileZilla Tutorials
  • Home Theater
  • Internet Marketing
  • Internet Technology
  • Kindle Tips
  • MySQL Tutorials
  • Online Auction Tips
  • Paint Shop Pro Tutorials
  • PHP Tutorials
  • Tech News
  • Thunderbird Tutorials
  • Video Production
  • Web Site Development
  • WordPress Tutorials
follow me on Twitter
Content and images are copyrighted by Tech-Evangelist.com and others

© 2019 Tech-Evangelist.com - All Rights Reserved
Posted code samples are free to use. Do not reproduce or republish articles or content on another web site.

Privacy Policy : Terms of Use