Within my custom built PHP web applicaion I have multiple domains pointing to the /root/abc
folder. IE: domain.com; mobile.domain.com, admin.domain.com
and so on.
The way my CMS is setup the index.php
file in /root/abc
loads different index.php
files that are stored on sub directories like /root/abc/mobile
, /root/abc/admin
, etc.. depending on the subdomain names.
I am having different .htacess
files at /root/abc
, /root/abc/mobile
and /root/abc/admin
respective to sub domains.
At this point I want to cache files from domain.com and mobile.domain.com but the cache should not work for admin.domain.com, and other subdomain.domain.com
Firstly, .htaccess
file on /root/abc
loads and then index.php
file on /root/abc
loads too. This loaded index.php
on root loads different folders varying on the sub domain and other properites respective to subdomain.domain.com
. The sub domain name is dynamic meaning the subdomain names and folder directories changes.
1.. Even if I use HTML meta tags to clear cache it does not work. Can you explain this behavior?
2.. How to load .htaccess files dynamically depending on the subdomain name?