One of the tricks for maintaining a healthy urinary tract is to start with healthy gut flora and you can read about maintaining healthy gut flora with essential oils on this post. Another thing to consider is that your immune system needs to be strong and you may also need to do a cleanse.
For any mild, occasional issues, you can also take 3 drops each of basil essential oil, cinnamon essential oil and oregano essential oil in a capsule up to 3 times daily until symptoms subside. Since everyone is so different, if these don’t work, you may need to experiment a little more. Some other oils to try are lemongrass essential oil, cedarwood essential oil, cassia essential oil, oregano essential oil or juniper berry essential oil.