Forum Moderators: phranque

Message Too Old, No Replies

I cannot see my .htaccess file on the server!

Any ideas why it disappears?

         

bondjamesbond

11:14 am on Aug 15, 2003 (gmt 0)

10+ Year Member



Hi

I am very new to using .htaccess files, but I am already understanding they are a very useful and powerful tool. I am currently using Dreamweaver MX to upload my files although I do have a FTP program called FTP Voyager.

In Dreamweaver MX, I can see the .htaccess on my local drive and I can see it when I upload it to the remote server. However if I refresh the view the file disappears! So how can I go about editing this file when I can not even see it?

I have looked at the options on both Dreamweaver and the other FTP program and I have unchecked any hide file options, and made sure windows explorer shows all files.

Does anyone have any ideas why I can't see these files?

Thanks!

SinclairUser

11:30 am on Aug 15, 2003 (gmt 0)

10+ Year Member



Some FTP programs allow the -la command - see this thread.

[webmasterworld.com...]

bondjamesbond

11:33 am on Aug 15, 2003 (gmt 0)

10+ Year Member



Thanks for that thread, I didnt spot that one. I will try that to see if it works.

Cheers!

claus

11:46 am on Aug 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



oh, you can also use -al i believe. The reason for the disappearing file is that a dot placed as the first character in the file name is a Unix/Linux sign that the file should be hidden from view. It's still there though, don't worry.

/claus

bondjamesbond

11:49 am on Aug 15, 2003 (gmt 0)

10+ Year Member



Thanks claus for that advice I try it to see if works.

Many Thanks

Damian

11:56 am on Aug 15, 2003 (gmt 0)

10+ Year Member



If your server uses ProFTPD and you have access to the proftpd.conf file (usually located at /etc/proftpd.conf I think) you can add the following to make sure you see your .htaccess files with any ftp application:

Locate the <Global> </Global> tags
If they don not exist, insert them towards the end of the file.

then insert

LsDefaultOptions "-a"

between the <Global> </Global> tags

So if you don't have the global settings yet it would read:

<Global>
LsDefaultOptions "-a"
</Global>

Vermont

6:27 pm on Aug 15, 2003 (gmt 0)

10+ Year Member



If your using SSH do View => Show Hidden Files

bondjamesbond

8:11 am on Aug 18, 2003 (gmt 0)

10+ Year Member



Many thanks for all your comments. I have now sorted the problem with help from your suggestions. The option I wanted was buried within a few menus.

hostlead

8:24 am on Aug 18, 2003 (gmt 0)

10+ Year Member



just like vermont said, the 'show hidden files and folders' feature is not activated.

HostLead