make redirect use correct header