Translate url to appropriate options