I use the dns wildcard system, which routes all subdomains through a single web application and sets the user ID based on the first part of the URL (X.domain.com, where X is the username).
Now I want to edit the htaccess file to enable conditional httpauth using htpasswd for specific domains. e.g. if url = password.domain.com enable httpauth.
I am sure this is possible, but has limited knowledge of htaccess.
source share