switch action url by protocal