andygb — 2013-01-26T14:16:26-05:00 — #1
Is it possible to password protect an addon domain using htaccess for a specific domain name? In other words, I have two domain names mapped to a 61 GB website. I want the primary domain to be able to access the website without any restriction, and the secondary domain to be password protected. Is this possible with htaccess?
dklynn — 2013-01-27T03:25:42-05:00 — #2
Certainly. Simply password protect the DocumentRoot of the secondary domain.
andygb — 2013-01-28T07:19:51-05:00 — #3
Maybe I didn't explain myself correctly :/
I have 1 website, but two domain names. I want one of them password protected by .htacess, and the other without. Is there any way to make .htaccess domain specific?
dklynn — 2013-01-28T15:37:21-05:00 — #4
Still the problem. Addon domains are usually in a subdirectory of the main domain; Parked domains share the webspace of the main domain. WHICH is your configuration?