how to avoid UTI's?

I just had my first one and I hated it! Now that it's gone I want to make sure I never get one again. Tips?