2 из 2
Исправил метки и заголовок
VenZell
  • 19.9k
  • 5
  • 44
  • 61

Собственная страница для ошибки 401

У меня есть .htaccess файл с авторизацией в админку:

AuthType Basic
AuthName "Admin Panel"
AuthUserFile C://OpenServer/domains/users/admin/.htpasswd
Require valid-user

Если нажать "Отмена" в авторизации, то на другой странице он выведет:

Authentication required!
This server could not verify that you are authorized to access the URL 
"/admin/". You either supplied the wrong credentials (e.g., bad password), 
or your browser doesn't understand how to supply the credentials required.

и т.д. И ниже ошибка 401.
Вопрос: можно ли как-то отредактировать эту страницу? Например, через css или написать другой текст?

Aliev A.
  • 225
  • 1
  • 4
  • 15