I hope you can help me again.
I would like to protect a subdomain in a multidomain wordpress (all instances in the same directory) via htaccess if possible.
the .htaccess is in a folder like:
vwp1234.webpack.hosteurope.de/www/multidomain-wp/.htaccess
the subdomains are like
subdomain1.mydomain.de
dev.mydomain.de
both instancen have the same root.
I would like to have a prompt with user = test and password = password only for dev.mydomain.de
thanks for every hint
update: with the following code I could solve the issue. thank for the hints
<If "req('Host') == 'example2.com'">
AuthUserFile /path/to/htpasswd
AuthType Basic
AuthName "Password Protected"
Require valid-user
</If>