Make redirect portable