How do I get rid of a .htaccess file?

Man of Honour
Man of Honour
Joined
3 May 2004
Posts
17,718
Location
Kapitalist Republik of Surrey
Someone was snooping about in my webspace last week and it was mentioned that I should put on a .htaccess file to disable browsing of my folders. Well I wasn't too bothered about any looking to be honest but out of curiosity I made a .htaccess and uploaded it. It has disabled browsing but obviously now I can't browse my own files easily!

I use FireFTP as my FTP uploader but it doesn't show any trace of the .htaccess file. How do I get rid of it?
 
It's a hidden file by default, so you'll need to change your FTP program's prefs to make it visible:
Code:
Step 1: Run fireFTP
Step 2: Select Preferences (Alt+R)
Step 3: Select the "General" tab
Step 4: Select "Show Hidden FIles"
Step 5: Click "OK"
(from here).

Then you should be able to delete it. The above option will also work by overwriting it.
 
Hey it worked! Cheers.

So I take it .htaccess is more of a hidden setting than 'file' as such.

Edit: ah right, everything is clear now. Thanks chaps :)
 
can you view hidden files on your web server? in the high likelihood that it's a linux server, the preceding . will render it a hidden file.

In FireFTP:

Step 1: Run fireFTP
Step 2: Select Preferences (Alt+R)
Step 3: Select the General tab
Step 4: Select Show Hidden FIles
Step 5: Click OK

then delete your htaccess file

augmented you slaaaaaag!! even from the same site! :(
 
Last edited:
Yeah, 'dot' files are hidden by default on most OSs e.g. .config, .bashrc etc. Usually used for local configuration settings, just as .htaccess is a local configuration file for Apache :).

augmented you slaaaaaag!! even from the same site! :(
Hah :p! Well, they do say great minds think alike :D.
 
Hey it worked! Cheers.

So I take it .htaccess is more of a hidden setting than 'file' as such.

Edit: ah right, everything is clear now. Thanks chaps :)

Its a 'UNIX' thing. All fines starting with the character '.' are considered hidden files. You can also hide directories the same way.

Common hidden files include .htaccess .htpassword .bash_profile but this list is endless really.
 
Back
Top Bottom