How do i train for a 500km ride? Which plans do i go for?

Is that an Audax ride? There’s a thread here that might be useful: