0

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>
Mr Sandman
  • 21
  • 3
  • 1
    So what is your specific question? Basic http authentication is well documented, you just have to follow the explanation. What else do you need? https://httpd.apache.org/docs/2.4/mod/mod_auth_basic.html and https://cwiki.apache.org/confluence/display/httpd/PasswordBasicAuth – arkascha Dec 12 '22 at 19:46

0 Answers0