.htaccess

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

I don't know if this is the right forum to post this in, so please feel free to move it Smiling

How do I use it? I made followed the instructions of a 'tutorial' on my webhosts site, but I can't get it to work properly can some one please tell me what I did wrong?

I have three files, .htaccess, .htpasswd, .htgroup

The contents are as follows:

.htaccess:

AuthUserFile /home/httpd/html/impactdesignz/restricted/.htpasswd
AuthGroupFile /home/httpd/html/impactdesignz/restricted/.htgroup
AuthName ByPassword
AuthType Basic

require group my-users

.htpasswd:

admin:admin

.htgroup:

my-users:admin

Brian Farkas's picture

They have: 1,015 posts

Joined: Apr 1999

Hi,
Your .htpasswd file needs to be generated by the server -- simply putting "admin" as the password in plain text won't work. The server generates an encrypted password file that needs to be used in the .htpasswd document. Your host should have some sort of program for generating this -- the best method would be to contact their technical support and ask them about it. Many hosts also offer this option through a control panel, as well.

Good luck and Merry Christmas,

Brian

They have: 14 posts

Joined: Jan 2003

If you need .htpasswd making try here.

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Thanks for the link Laughing out loud

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.