Request transformer issue in kong

I have to redirect kong issue, I have used the request transformer plugin
I am using kong CE 0.14
I want redirect www.abc.com/xyz to www.abc.com/m-klm
I am getting 502 bad gateway
kindly help out with this