You can't redirect a ship in transit. As mentioned, you need to cancel the current order for the ship, it should stop at its current location, and then you can give it new orders.