change the rules for redirection