change servername to serverip in url when redirect a http request