M
M
miniven2016-03-25 14:57:42
PHP
miniven, 2016-03-25 14:57:42

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

1 answer(s)
M
Maxim Kozlov, 2016-03-25
@MaxKassa

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 question

Ask a Question

731 491 924 answers to any question