Using a “static” webpage with no wordpress/php, the same basic auth setup with .htaccess works without prompting the user again and again on each page link..so it has to do with wordpress.
In https://de.www.ads-software.com/plugins/http-digest-auth/, it is described that
If you are using FastCGI PHP this plugin may keep prompting for the credentials even if you enter the right pair, in this case use the following in your .htaccess file
(I dont use this plugin.)
<IfModule mod_setenvif.c>
SetEnvIfNoCase ^Authorization$ "(.+)" PHP_AUTH_DIGEST=$1
</IfModule>
However, I dont use digest auth but basic auth, the above leads to HTTP-Error “500 Internal Server Error”.
I try this https://www.coderrr.com/using-http-auth-basic-wordpress/ instead of using basic auth in .htaccess.
Or maybe someone knows a simpler solution by using proper .htaccess setup?
-
This reply was modified 5 years, 7 months ago by nimo24.