Keeping the genital area clean and wiping from front to back may reduce the chance of introducing bacteria from the rectal area to the urethra.
Drink plenty of fluids to allow for frequent urination to flush the bacteria from the bladder.
Urinating immediately after sexual intercourse may help eliminate any bacteria that may have been introduced during intercourse. If you do not urinate for a long period of time, the bacteria has time to multiply. Frequent urinating may reduce risk of cystitis in those who are prone to urinary tract infections.
Drinking cranberry juice prevents certain types of bacteria from attaching to the wall of the bladder and may reduce your risk of infection.