Welcome to WebmasterWorld Guest from 54.196.244.186

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Setting permissions on htaccess

How?

     
12:33 pm on Jun 19, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Aug 10, 2001
posts:331
votes: 0


Hi all

I'm not sure if this is even a valid question, but I'm trying to make a password system work and I'm wondering if the .htaccess file needs permissions set to, say, 777.

I'm using CuteFTP and I can't see the htaccess file on the server, and as I normally set permissions with a right-click on the file and choosing CHMOD, I can't see how to do it. (Or even know if I need to)

Someone put me out of my ignorance. :)

Cy

7:07 pm on June 19, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


First, you don't need to set any permissions on the .htaccess file. And, if you really have to for some reason (read/write function in a script) you can write a quick script that will chmod the file for you.

Now, the reason you can't see the file in your FTP program depends on the server settings. Some providers block all .h* files from being seen in the folder tree (for security reasons). That doesn't mean the file isn't there, you just can't see it.

7:12 pm on June 19, 2003 (gmt 0)

Administrator

WebmasterWorld Administrator rogerd is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 2, 2000
posts:9685
votes: 0


Crome, some FTP programs have a setting for "show hidden files" or similar. You might check that out, too.
7:53 pm on June 19, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


The file isn't "hidden"...
Information about the file is never sent to the FTP program in the first place. This is handled on the server side and has nothing to do with showing hidden files.
The FTP program doesn't know whether the file exists or not.
7:56 am on June 20, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Aug 10, 2001
posts:331
votes: 0


OK, thanks folks. If I don't need to set permissions, the problem must lie elsewhere.

Off to hunt that critter down...

Cy

9:06 pm on June 20, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


the problem must lie elsewhere

What exactly is the problem?

9:23 pm on June 20, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 1, 2002
posts:1017
votes: 0


I use CuteFtp and have no problems seeing my .htaccess file so there must be something else going on?
12:32 am on June 21, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member wilderness is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 11, 2001
posts:5408
votes: 2


My ftp software has a "parameter" setting option of "-a"
to view all files.
3:47 pm on June 24, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 21, 1999
posts:2141
votes: 0


Using the CuteFTP Site Manager>Edit>General Tab>Check the "Enable Filter" box. Click on the Filter button beside it, on the Options tab, check "Enable remote filters" and add "-a" to the "Remote filter:" field.