getEnvironmentByUrl

Determine the environment by a url string