.htaccess and .htpasswd
  • How to know the path for AuthUserFile. I want to protect my administrator back-end with a password. But it seems fail because I think the directory is not right...Please help me...Below some sample what I've been doing..

    .htaccess contents:
    AuthType Basic
    AuthName "My Protected Area"
    AuthUserFile ../www/public/private/.htpasswd (sample)
    Require valid-user

    .htpasswd contents:
    admin:admin <--- exact line --- No longer encrypted.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook


Share Me

  • Please share this topic with your friends. Click any of the icons below:
  • stumbleupon
  • Twitter
  • facebook
  • myspace
  • technorati
  • reddit
  • fark
  • email