Modify https redirect