fixing no https on $_SERVER