Is there a lazy way to get a variable for "top level" host without resorting to if()?
- example.com: return example.com,
- cabbages.example.com: return example.com,
- carrots.example.com: return example.com,
- otherexample.com: return otherexample.com,
- cabbages.otherexample.com: return otherexample.com,
- carots.otherexample.com: return otherexample.com,