View Full Version : htaccess (password)


jezza
06-09-2004, 12:30 AM
whats the code ill have to put into a htaccess file to password protect my stuff.

stargrl329
06-09-2004, 02:01 AM
I haven't worked with .htaccess myself, but there's plenty of info here:
http://htmli te.com/HTA006.php

jezza
06-09-2004, 05:35 AM
k thankz ive made it and ive added the .htaccess file to my server and it works but when i put in the username/password it dont work so UM can some1 make a test layout for me so i can see wat i did wrong.

1 other question, Y DO I ALWAYS GET DIFFERENT ENCODING FROM SITE TO SITE ITS watch your language please !!!

jezza
06-10-2004, 05:51 AM
can't ne1 help? :(

jezza
06-10-2004, 09:42 AM
1 other question, Y DO I ALWAYS GET DIFFERENT ENCODING FROM SITE TO SITE ITS watch your language please !!!

stargrl329
06-10-2004, 11:06 AM
Please be patient -- posting repeatedly won't get your problem solved any sooner.

Are you sure you created a new file called .htpasswd rather than .htaccess, and have uploaded it in your root folder? It would help if you posted a link to the site on which you can't get the password to work.

Finally, I don't quite understand what you mean by encoding -- a link might make this clearer as well.

pb&j
06-10-2004, 01:26 PM
there are usually different ways to create the same effect.
different sites may show a slightly different way of doing something.

Luzee12
06-11-2004, 06:19 AM
I don't know, jezza, but it's not just you. I was sent to that site for help with .htaccess and it didn't work for me. What it DID was lock me off my site, because the box asking for a password came up, but then when I typed in the password from the file I'd just uploaded, it wouldn't work. I retried it multiple times, and I couldn't get to my site. Finally someone suggested uploading blank .htpassword and .htaccess files, and that worked to let me into my site again. Unfortunately, it's still not password protected, so my mom won't let me put anything else on the web.

So, does anybody have a different suggestion for how to get it to work?

stargrl329
06-11-2004, 11:03 AM
Well, you could always just try another site...?
http://www.javascriptkit.com/howto/htaccess3.shtml

pb&j
06-11-2004, 01:23 PM
one of the hard parts of the htaccess password is finding the correct path name to enter for the htpasswd file.

if you are putting the htpasswd into your main (root) folder, it may look something like this...

AuthUserFile /home/youruserID/www/.htpasswd

you may have to email your host to help find the exact one though. took me a few tries before i realized i was missing the www part.

Pykkalo
06-12-2004, 01:19 PM
It may depend on your webhost, too. I had no problems adding a .htpasswd file to my old website, but I started hosting another through GoDaddy's $3.95/mo service and I can't figure out how to add the .htpasswd at all! (Of course I emailed them, and they were no help at all :rolleyes: )