Helppp

How to get rid of a UTI? I know cranberry juice and water help flush it out that shouldn’t hurt so bad to have sex like I’ve never had one before but it’s so painful to have sex and shouldn’t they prescribe me for anabiotic’s?