Refactored httpDomain() into BaseController