| How can I get my .htaccess to work on Godaddy [message #845] |
Sat, 08 December 2007 01:51  |
neth Messages: 1 Registered: December 2007 |
|
|
|
I have read a few of the topics but I still can't get my password protection to work.
AuthUserFile /home/content/b/l/a/blazegraal/html/.htpasswd
AuthName "Staff Only"
AuthType Basic
require valid-user neth
Thats what i have in my .htaccess.
I put the .htpassword in the main sites folder for the test.
So can someone please help with this?
|
|
|
| Re: How can I get my .htaccess to work on Godaddy [message #858 is a reply to message #845 ] |
Fri, 25 January 2008 05:23   |
howzit Messages: 1 Registered: January 2008 |
|
|
|
Neth, it depends on what your actual .htaccess file contains beyond the password authentication. I use Godaddy hosting and it works perfectly fine.
Here is an example of mine (using your domain path info though)
AuthUserFile /home/content/b/l/a/blazegraal/html/.htpasswd
AuthGroupFile /dev/null
AuthName Admin
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
Obviously, I keep my .htaccess file on the root of the directory, but I like to put my .htpasswd file in its own folder on the root of my directory (but this shouldn't affect anything).
Hope this helps.
|
|
|
| Re: How can I get my .htaccess to work on Godaddy [message #882 is a reply to message #845 ] |
Mon, 11 February 2008 18:32  |
Petrodus Messages: 1 Registered: February 2008 |
|
|
|
This post has been very helpful for me, as I also have Godaddy hosting. One further question:
Is it possible to have one .htaccess file in the root, but more than one folder with a .htpasswd file?
|
|
|