1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Password Protect with .htaccess

Discussion in 'Troubleshooting and Problems' started by kuyenmotdivad, Nov 23, 2011.

  1. kuyenmotdivad

    kuyenmotdivad Active Member

    Hi,

    If I protect my admin.php using the .htaccess method, anyone know why I'm getting a 500 - Internal Server Error?

    I'm using this in my .htaccess.

    PHP:
    <Files admin.php>
      
    AuthName "Protected Area!"
      
    AuthType Basic
      AuthUserFile 
    /root/xxxxxx/xxxxxxxx/.htpasswd
      
    Require valid-user
    </Files>
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. kuyenmotdivad

    kuyenmotdivad Active Member

    oh I see what I did wrong I had my old userfile there and forgot to upload it, thanks
     

Share This Page