Quick Login   
 
Register AdminFusion Tutorials
 
Featured Sponsors


One.com Domain and Hosting


Register
Forum of the Month
Australian Webmaster
fotm

A webmaster forum specifically catering for Australian site owners. We discuss site development, marketing and management issues.

Tag Cloud
Latest Threads
Forum Stats
8,065 Members
165,833 Posts
46 Users Online

Please welcome our newest member, zen3d!

Affiliates
Go Back AdminFusion » Getting Started » Domains and Hosting » deleting .htaccess files 'how to'
Welcome to the AdminFusion. AdminFusion is the ultimate resource for forum administrators and moderators. With exclusive articles, interviews with the experts, free downloadable skins, and the revolutionary post exchange system - PostFusion, AdminFusion is the place to go for all of your forum needs.  By joining AdminFusion, you will become part of a thriving admin community and immediately gain access to all of these resources. Registration is fast, simple and absolutely free so please join us today!
Want more than our forums? Try these: Post Fusion Forum Matrix
Old 06-24-2007, 06:01 AM   #1

cornnfedd's Avatar

Title: Member

Points: 1,404, Level: 10Points: 1,404, Level: 10Points: 1,404, Level: 10
Level up: 11%, 146 Points neededLevel up: 11%, 146 Points neededLevel up: 11%, 146 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Jun 2007

Posts: 98

Location: Adelaide, Australia

cornnfedd will become famous soon enough

Send a message via MSN to cornnfedd  
 
deleting .htaccess files 'how to'

source: Installer :: Help :: How to manage files whose names begin with a dot, like '.htaccess'

im putting this how to here for a few reasons, mainly being so can i refer back myself and also other people may find of interest. If you have installed and deleted alot of forums you will notice that there are directories that you sometimes cannot delete using your ftp, this is usually because there is a hidden file in that directory that your ftp cannot see. Alot of ftp cannot see the .htaccess file, therefore you cannot delete the file or the directory. You can however delete this file manually.....

how to below, which i have got from another website:

Quote:
How to manage files whose names begin with a dot, like '.htaccess'

Filenames beginning with a dot are considered "hidden files" in the Unix world. These files often do not appear in the directory listings when viewing folder contents with FTP. Many problems arise from this fact.

Fluid Dynamics scripts are forced to use dot-files in some cases. For example, the important Apache access control file ".htaccess" begins with a dot. Other file names, like ".webauth_passwd" in Genesis, were chosen to start with a dot to make them more secure. You need to be able to manipulate dot-files to make backups or to uninstall our scripts. In some cases, you also need to manipulate dot-files during the install.

Command-Line Manipulation of Dot-Files

On Windows, Unix, Linux, or Mac OS X, use the command-line FTP program. Command-line FTP is included with all modern operating systems. It uses a powerful, consistent, easy-to-learn syntax.

On Windows, you can access the command line by going to "Start" => "Run" => "command".

Quote:
Once you are at the command line, type "ftp hostname" where "hostname" is the name of your web site. Follow the login prompts.

Quote:
Once you log in, change directory to your web folder. Use the command "ls -al" to list all files and folders. The "-al" flags should force the listing of dot-files.
Quote:
The command "get .htaccess" will retrieve the file ".htaccess". Use this command if you are making a backup, or if you are downloading an existing file so that you can make updates.

The command "put .htaccess" will upload the file ".htaccess" from your local folder up to the server. Use this command if you are installing the product, restoring from a backup, or uploading an updated file.

The command "dele .htaccess" (for files) or "rmdir .foo" (for folders) will delete the file or folder. Use this when uninstalling.

The command "rename .htaccess ht.foo" can be used to rename the file to something without a dot. This is a better option than "dele" when you are just starting out, since you can rename things back the way they were if necessary.

In some rare cases, the FTP server will refuse to list dot-files even when you use the "ls -al" command. Even in those cases, though, you can still manipulate the files using commands like "get .htaccess" or "put .htaccess". To be safe, if you are about to upload a ".htaccess" file into a folder that appears to lack one, you should test this with the command "get .htaccess" first. If the server responds "550 No such file" then you're safe -- there really isn't any file with that name. But if the server responds "226 Transfer completed", then that means there was already a file there with that name. You should merge your changes with the existing file and then upload the completed copy.

"Cannot Delete - Folder Not Empty" Error

When you delete our scripts, your FTP program may complain about being unable to delete a folder with the name "data" in it (i.e., "searchdata" for FDSE or "script_data" for Genesis).

These problems arise because there is an orphaned, hidden .htaccess file in those folders. Your FTP program is failing to delete it when it tries to delete all files and folders, because it can't "see" the hidden file. You must go in and manually delete this hidden file. Even if it doesn't show up in the folder list using "ls -al", just have faith and use the "dele .htaccess" command from within those data folders. This will delete the hidden file and you will be able to complete the uninstall.
if people are interested im happy to put up some screen shots.
Reply With Quote
Old 06-24-2007, 06:14 AM   #2

RedMatrix's Avatar

Title: Gas 1.43

Points: 25,494, Level: 48Points: 25,494, Level: 48Points: 25,494, Level: 48
Level up: 49%, 56 Points neededLevel up: 49%, 56 Points neededLevel up: 49%, 56 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Feb 2006

Posts: 3,984

Location: back in TX

RedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond repute
Send a message via ICQ to RedMatrix Send a message via MSN to RedMatrix  
 
Where does this come from? Please pay them with a link back.
__________________
I went to Vegas, and all I got was this Blister. - true story!
Reply With Quote
Old 06-24-2007, 06:17 AM   #3

cornnfedd's Avatar

Title: Member

Points: 1,404, Level: 10Points: 1,404, Level: 10Points: 1,404, Level: 10
Level up: 11%, 146 Points neededLevel up: 11%, 146 Points neededLevel up: 11%, 146 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Jun 2007

Posts: 98

Location: Adelaide, Australia

cornnfedd will become famous soon enough

Send a message via MSN to cornnfedd  
 
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

 
Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
What's an .HTACCESS file? RedMatrix vBulletin 10 05-17-2007 08:47 AM
What do you do with the files from the games? Cori Forums General 12 07-16-2006 08:56 PM
Deleting Inactive Users James Goddard Handling Problem Members 12 01-09-2006 10:34 PM

AdminFusion

All times are GMT +1. The time now is 06:43 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0 © 2005-2008 AdminFusion - All Rights Reserved


From:
Title:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72