http to https migrate script