best advice on avoiding UTIs

I know, pee after sex... but do y'all have any other good tips on avoiding them if you get them often? I have a bad one, but I feel like I did everything right.