Fix http to https redirect.