Click to See Complete Forum and Search --> : htaccess help


Alatar
06-14-2006, 01:35 PM
Hi all.
I am trying to password protect a directory on my site. It isn't working. I've used .htaccess and .htpasswd, and its just not working. I don't know how to upload in ASCII format, except that I think that is default so it doesn't matter. This place that I'm trying to protect is http://GoTyler.net/password/hi.html.
The .htaccess file is:

AuthName "Restricted Area"
AuthType Basic
AuthUserFile http://www.GoTyler.net/.htpasswd
AuthGroupFile /dev/null
require valid-user

and the .htpasswd file is:

a:xdjt8uH2txHi2

(The password is "a")

Does anybody know why this isn't working?
I heard of something called a CHMOD. I have no idea what this is. How do you use it, and what does it do?
PLEASE HELP!

(My host is GoDaddy)

GaryS
06-14-2006, 01:45 PM
can't use a http path for this. Need the server file path to the file (often starts with thingss like "/usr/local/home...")

Alatar
06-14-2006, 05:28 PM
How do I find the server path?
(I'm really new at this, be patient ;))

GaryS
06-14-2006, 05:31 PM
Are you using an FTP program to put the files (like the password file) onto your server? That should show you the full path to the folder.

Alatar
06-14-2006, 05:59 PM
I'm using CuteFTP. I looked, but couldn't figure out where it says the path. Is it just the bar over the right side?
(see image: http://www.GoTyler.net/argh.bmp)

GaryS
06-15-2006, 03:43 AM
Looks like your path is simply "/". Try:

AuthUserFile /.htpasswd