I had this problem for years and thankfully I haven't had any more UTIs in about a year

But if you are sexually active than it is MUCH easier to get a UTI and also give your partner a UTI. It's not a "STD" but it can be transmitted sexually.
What the doctors told me to do was to use the restroom BEFORE and AFTER sex, even if you don't have to, make yourself. This worked and now I'm free of UTIs! I wish you luck on this, I know they stink! Take care!