correct redirect url to real host url