View Full Version : .htaccess?
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?
08-09-2004, 08:17 PM
You could ssh into the box and remove them via the Command line.
08-09-2004, 08:23 PM
?> ssh firstname.lastname@example.org
?> ENTER PASSWORD
?> cd /path/to/directory
?> ls -al
?> rm .htaccess
?> Are you sure (y/N)? y
?> ls -al
08-09-2004, 08:39 PM
how do you do that? sorry I'm a little clueless on this
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.
ls = show files in the current directory (much like dir in dos)
rm = remove file
Hope this helps
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
08-09-2004, 09:33 PM
I got it, rm is for directories only, i used delete /folder/.htaccess
thanks for the help anyway
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:
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-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...
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.