deviate
cause to turn away from a previous or expected course
The river was deviated to prevent flooding