Using Errordocument 401 leads to blank page

My .htaccess looks like this:

ErrorDocument 401 /error/401.html
AuthType Basic
AuthName "Password Protected Area"
AuthUserFile /var/www/vhosts/funatodev.de/httpdocs/wordpress/.htpasswd
AuthGroupFile /dev/null
Require valid-user

# BEGIN WordPress

# END WordPress

But when the first line is included, instead of the login window, I only get a blank page. (Of course, the file /error/401.html exists) I tried adding the following lines:

SetEnvIf Request_URI "^/(error/401\.html|robots\.txt)$" allow_all
Order allow,deny
Allow from env=allow_all
Satisfy any 

But that leads to an internal server error

Leave a Comment

tech