Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9

Thread: .htaccess?

  1. #1
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .htaccess?

    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?

  • #2
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    You could ssh into the box and remove them via the Command line.

  • #3
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    Par example:

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

  • #4
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    how do you do that? sorry I'm a little clueless on this

  • #5
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    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

  • #6
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i keep getting the error: can't remove directory. Not a directory. im using windows' cant connect with putty

  • #7
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I got it, rm is for directories only, i used delete /folder/.htaccess
    thanks for the help anyway

  • #8
    Senior Coder
    Join Date
    Feb 2003
    Location
    Ontario, Canada
    Posts
    1,223
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #9
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    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...
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •