fix http redirection