Finding url and host in path.