Answer the question
In order to leave comments, you need to log in
Why htaccess won't let me into the admin panel?
Uploaded the site to hosting. Indicated that you need to log in to enter the admin panel
. I get the error "The server encountered an internal error or misconfiguration and was unable to complete your request."
The path to the htpasswd file has already been written 20 different times. What needs to be changed/added for me to be allowed there?
AuthType Basic
AuthName "Введите логин и пароль"
AuthUserFile .htpasswd
require valid-user
Answer the question
In order to leave comments, you need to log in
Specify the full path to .htpasswd
you can see the path echo $_SERVER["SCRIPT_NAME"];
AuthUserFile /full path/.htpasswd
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question