Fix redirect protocol at https