How do I re-rout to a specific page after a member logs in?

Once a person logs in after payment, how do I control which page they land on after login? As it is now, the person logs in and it goes to a page that doesn't exist, but I don't know which page it's trying to reach.