Staying hydrated will help avoid a UTI, so aim to drink the recommended amount of fluid per day — around eight glasses (between 1.5 and 2 litres). Many foods also contain liquid and this counts towards the recommended amount of fluids; try eating more foods such as yoghurt, ice-cream, custard, and fruit.