Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

.htaccess help


ghost's Avatar
0 0

I had created this file like below:

AuthName “Members Only”

AuthType Basic

AuthUserFile E:/mypath/.htaccess

require user myname

and my .htpasswd file goes like below:

myname password

I m using xp. Whenever i go to that page through my browser it shows 500 error and says more info is on error.log

Whenver i m viewing error.log, it shows that problem is with the AuthName thing. I dont know where I m going wrong and i had done the

AllowOverride AuthConfig thing in httpd.conf

Please help me out guys.


clone4's Avatar
Perl-6 Wisdom Seeker
0 0

ok had to revise htaccess files little more, and the only problem I see is in your htpasswd file… for instance it should look like :

myname:y1ia3tjWkhCK2


ghost's Avatar
0 0

thanks for the reply will try that


ghost's Avatar
0 0

Still not working, it gives this error:

AuthName takes one argument, The authentication realm (e.g. "Members Only")


clone4's Avatar
Perl-6 Wisdom Seeker
0 0

I knew I missed out something, look below:)


ghost's Avatar
0 0

Your .htaccess must be like this:

AuthName "Members Only" AuthType Basic AuthUserFile "E:\mypath\.htaccess"

And your .htpasswd must be like this:

myname:$*********************************/

For me this works.


ghost's Avatar
0 0

ok i did this:

AuthName 'Members Only'

that means instead of " i put '

but now it pops up the message box of username and password but does not accept my inputs and just pops up again whenever i hit enter


ghost's Avatar
0 0

done it finally great help man thanks a LOT


ghost's Avatar
0 0

no prob man, i'm always here to help.


ghost's Avatar
0 0

thanks to clone4 also for taking time and having a conversation with me and helping me out.

and this is my 100th posts so congrates to me:D