Forum Moderators: phranque

Message Too Old, No Replies

.htaccess files

deleting .htaccess files

         

kris0l0gy

1:52 am on May 25, 2003 (gmt 0)

10+ Year Member



I attempted to install a .htaccess file to stop direct linking of images from my site & I ended up not liking it so now I want to delete it. First I can't even see the file in my directory listing in my FTP. Secondly when I go to delete the directory it is in it tells me I do not have the permission to perform this action.

Do I have to email my host or what should I do?

SinclairUser

2:08 am on May 25, 2003 (gmt 0)

10+ Year Member



WS_FTP does not display files that begin . (dot) thats why you cant see it. If you installed the file then you should have permission to delete it. However, you might just try and rename it instead using "mv oldname newname".

maccas

2:19 am on May 25, 2003 (gmt 0)

10+ Year Member



Not sure what FTp program you are using, but there should be a box where you can type commands, type -la and press enter.

MWpro

4:22 am on May 25, 2003 (gmt 0)

10+ Year Member



You could always make a blank file with nothing in it, save it as .htaccess and upload over the existing one.

kris0l0gy

2:07 pm on May 25, 2003 (gmt 0)

10+ Year Member



I'm using Cute FTP...

I tried to upload a blank .htaccess file & it uploaded fine (but without asking me to rewrite over the existing one) but it still wouldn't allow me to delete it.

Since I can't see the file or find a way so I can see it I don't know how I'd rename it.

RonPK

10:55 am on May 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How to display .htaccess in CuteFTP:

-Go to the site manager and edit the settings for the server of your liking.
-Under the "general" tab click on the "Enable Filter" checkbox and then the "Filter" button.
-Under the "Options" tab check "Enable remote filters" and enter "-la" (without the quotes) into the "remote filter" text box.

ITcameleon

2:36 pm on Jun 3, 2003 (gmt 0)

10+ Year Member



You can also use Core FTP to display hidden files (.htaccess and .htpasswd).
In the main window click on the remote directory and choose "Directory" then "List mode" and change from "Normal" to "Advanced".