1. Drink a tall glass of water immediately after your ride.
2. Eat something with electrolytes after your ride.
3. Change into baggy clothing.
4. Walk around a bit after the ride, stretch, take a hot shower, do some housework ... do not sit for more than about 30 minutes at a time.