Split out environments from main url