correct http header redirections