View Full Version : .htaccess?

08-09-2004, 07:16 PM
hi, I used .htaccess files in my server, and now i cant remove them because my ftp program can't view them. Is there any way to remove them?

08-09-2004, 07:17 PM
You could ssh into the box and remove them via the Command line.

08-09-2004, 07:23 PM
Par example:

?> ssh user@domain.com
?> cd /path/to/directory
?> ls -al
?> rm .htaccess
?> Are you sure (y/N)? y
?> ls -al

08-09-2004, 07:39 PM
how do you do that? sorry I'm a little clueless on this

08-09-2004, 07:55 PM
If you're on a windows box, you'll need to download and install putty (check for "putty download" on google).

Then connect to the server and type what I entered in my last post.

ls = show files in the current directory (much like dir in dos)
rm = remove file

Hope this helps


08-09-2004, 08:28 PM
i keep getting the error: can't remove directory. Not a directory. im using windows' cant connect with putty

08-09-2004, 08:33 PM
I got it, rm is for directories only, i used delete /folder/.htaccess
thanks for the help anyway

08-09-2004, 11:05 PM
Err, just find the "List Options" box in your FTP client's preferences box and put this in the box:


That'll show ALL files.

Can't find list options? Try your FTP client's "help" section and search for "-al" or "LIST", or "display hidden" etc.

08-09-2004, 11:10 PM
This really doesn't have anything at all to do with PHP. Please post in the appropriate forum in the future.

Moving thread to Server side Issues...

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum