I want to redirect to a login page without the htaccess prompt showing up if a valid-user is not found
i have a working htaccess auth
AuthName "My name"
NTLMBasicRealm "DOM"
NTLMAuth on
NegotiateAuth off
NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
NegotiateAuthHelper "/usr/bin/ntlm_auth --helper-protocol=gss-spnego"
NTLMBasicAuthoritative on
AuthType NTLM
AuthType Negotiate
Require valid-user
ErrorDocument 401 /index.php
Which sets the Windows name as $_SERVER['REMOTE_USER'] as long as a valid-user is found. if not the htaccess prompt pops up and you need to manually cancel it to get redirected
if i remove Require valid-user, $_SERVER['REMOTE_USER'] is null.
Is there a way to Authenticate an User but if not automatically found redirect without prompt?