I’ve got a multi domain site (custom CMS) where all sites have the same documentroot. Depending on the url(domain) it will serve a different site. Having only 1 root they also have only 1 .htaccess
Now I want to protect 1 domain with a simple .htacess login (like this)
How do I specify this login to 1 domain?
You can use mod_setenvif support to protect only one of your domain. Here is the code that you need to put in your common
.htaccessunder$DOCUMENT_ROOT:Above code will show basic auth popup only for
www.subdomain.comwhile leaving other domains open.