PDA

View Full Version : Invisible .htaccess file


chris1979
08-31-2008, 09:37 AM
My dedicated server seems to be set up to hide .htaccess files. It's not a client issue, I have used different FTP clients to log into my server and none of them show the .htaccess files there (and they do show the .htaccess files for sites I have on other servers).

I desperately need to add some lines to my .htaccess file. I don't know what's there already so I want to download the existing .htaccess file, add my lines and then re-upload it.

With any other file it would be the easiest thing in the world but for some reason my server is configured to hide the .htaccess file so I don't know how to download it.

It's really frustrating me!

Does anyone know how to change a server setting (Linux) to show .htaccess files in FTP?

--------------- Added 1220180880 at 1220180880 ---------------

I solved it - used SSH to get the old file.

SEOvB
08-31-2008, 02:10 PM
This is generally a client-side option. Look for an option to use "LIST -al" or if there's an option for LIST parameters, set "al" (or "-al" depending on your client).

If that doesnt work, ssh in and set the options listed below

nano /etc/vsftpd.conf
force_dot_files=YES

or if using pure-ftp

nano /etc/pure-ftpd.conf
Displaydotfiles yes

ssslippy
08-31-2008, 07:03 PM
Whatever program you use for the FTP server wide you should read the documentation.