Redirecting to Acyclic deterministic finite automaton