I have two site hosted as subdomains.
One of the site use subdomains as aliases for dynamic images requests.
site1.example.com site2.example.com sub1.example.com -> same as site1 sub2.example.com -> same as site1 sub3.example.com -> same as site1
Dynamic images are requested by
In the htaccess I want to:
- limit access to site1 and site2 (same user and password)
- have no authentication prompt on subXs
- redirect everything to images.php for subXs requests
Limitations: I don't have access to httpd.conf so no directory block
I tested SetEnv, SetEnvIf, IfDefine with no success.