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

admin.php htpasswd

Discussion in 'Troubleshooting and Problems' started by Solidus, Apr 26, 2013.

  1. Solidus

    Solidus Well-Known Member

    I am trying to htpasswd protect the admin.php file, but I think the url structure of the admin panel prevents this.

    <FilesMatch "admin.php">
    Require valid-user
    AuthType Basic
    AuthUserFile ../.htpasswd/.htpasswd
    Require valid-user

    When this is placed in .htaccess, admin.php* gives me 500 internal server errors. Any way around this?
  2. Solidus

    Solidus Well-Known Member

    Never mind, fixed.

Share This Page