How do you plan a hike?

How do you plan a safe and fun hike?