I would like to redirect to my home page again if the authentication failed, since the authentication fails with basic authentication from ngnix even if you press cancel and do not even try to authenticate.
If I do it the way shown in the screenshot it simply loads the page; so redirection works but the authentication and hence the access of the other page does not show up anymore. Do you know anything else I could try?