Dehydration is much easier to prevent than to cure:
drink water (try to avoid sugary drinks and alcohol);
rink more, especially with fever, nausea and diarrhea;
adults, in hot weather during physical activity should drink at least 1 liter water per hour;
make it a habit to always have a bottle of plain water with you and drink it throughout the day.