Dear,
I'd like to redirect a user from my php script to a htaccess password protected directory.
the user should not have to enter anything in the dialog (it should not even open at least).
so I want the user to be redirected to "http://user:pass@domain.tld".
Is there a way to do this with header()s?
(header("Location: http://user:pass@domain.tld") is NOT working)
I have a solution with a Javascript redirection, so the browser is creating the correct headers. but I don't like this so much.
Is there a way to create the correct headers in PHP, and how?
Thanks for helping
Thorsten