add redirect by given code