UTI prevention

how else can i prevent getting a UTI? I have been getting them more frequently now after sex even though I pee every time afterwards and make sure to wash well. (sex with the same partner)