Always urinate when you need to... no waiting!
No dark sodas, tea, or coffee.
Cranberry juice.
Lots of water.
I'd think basically what they tell you to do at the doctor to flush out the infection, which is what I put.
My friend gets them when she takes baths instead of showers, so no baths.
Make sure you're cleaning yourself properly (front to back) so you're not bringing bacteria forward.
Pee and clean yourself before and after sex.
Cotton undies!
Actually, I just found
this, which lists what I've said and a few more, I believe.