Computing.Net > Forums > Web Development > Another Question About .htpasswd

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Another Question About .htpasswd

Reply to Message Icon

Name: Qbart
Date: January 27, 2007 at 11:13:26 Pacific
OS: Win XP
CPU/Ram: 1.6ghz 512mb
Product: IBM
Comment:

Ok, I'm new to all of this and I have hopefully a simple question.

I've created a .htaccess file and put it in a folder I want to protect. It works fine as far as when you go to the page it pops up the user name password prompt like it should.

My question is where to put the .htpasswd file? I have my site hosted on godaddy.com and they explain it like this:

Where "l," "o," and "g" are the first three letters of your hosting login and "login_name" is your full hosting login. For example, the hosting login "maynard" would translate to the following path:

/home/content/m/a/y/maynard/html/.htpasswd

So for this example would I have to create the folder content/m/a/y/maynard/hmtl?

I just put my .htpasswd file in my root folder that the ftp client defaults to and that doesn't seem to be working.

Thanks for any and all help!

Q



Sponsored Link
Ads by Google

Response Number 1
Name: Qbart
Date: January 27, 2007 at 13:21:24 Pacific
Reply:

Ok, I figured it out, my username started with an upper case letter and I had lowercase letter in the .htaccess file.

Once I changed that it worked perfectly.



0

Response Number 2
Name: Taurus
Date: January 28, 2007 at 07:19:15 Pacific
Reply:

Good stuff. I also use GoDaddy hosting and a good way to get the folder address is to create a php file and run it through the browser. Put this code in it and it will show you your address. (Remove the file once your done for security reasons)

<?php
include("filethatdoesntexist.php");
?>

It will give an error saying that it can't find it and will give a server address. :)

Developers have a sense of humour, it's just commented out.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Another Question About .htpasswd

Questions about building a site www.computing.net/answers/webdevel/questions-about-building-a-site/1169.html

RE: Few questions about website d.. www.computing.net/answers/webdevel/re-few-questions-about-website-d/4011.html

Question about http/webserver www.computing.net/answers/webdevel/question-about-httpwebserver/475.html