My code base is shared between several environments (live, staging, dev) & sub-domains (staging.example
, dev.example
, etc.) and only two should be allowed to be crawled (ie. www.example
and example
). Normally I'd modify /robots.txt
and add Disallow: /
, but due to shared code base I cannot modify /robots.txt
without affecting all (sub)domains.
Any ideas how to go about it?