Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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.

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.

![]() |
![]() |
![]() |

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