View Full Version : .htaccess?
anomaly
08-09-2004, 08: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?
bcarl314
08-09-2004, 08:17 PM
You could ssh into the box and remove them via the Command line.
bcarl314
08-09-2004, 08:23 PM
Par example:
?> ssh user@domain.com
?> ENTER PASSWORD
?> cd /path/to/directory
?> ls -al
?> rm .htaccess
?> Are you sure (y/N)? y
?> ls -al
anomaly
08-09-2004, 08:39 PM
how do you do that? sorry I'm a little clueless on this
bcarl314
08-09-2004, 08: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.
Commands:
ls = show files in the current directory (much like dir in dos)
rm = remove file
Hope this helps
Brandon
anomaly
08-09-2004, 09:28 PM
i keep getting the error: can't remove directory. Not a directory. im using windows' cant connect with putty
anomaly
08-09-2004, 09:33 PM
I got it, rm is for directories only, i used delete /folder/.htaccess
thanks for the help anyway
AaronW
08-10-2004, 12:05 AM
Err, just find the "List Options" box in your FTP client's preferences box and put this in the box:
-al
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.
Spookster
08-10-2004, 12:10 AM
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...
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.