Infectious causes of cervicitis, eg gonorrhoea and chlamydia, are treated with an antibiotic. If the cause is viral, such as genital herpes, the treatment is an antiviral medication. Medications often can clear up the inflammation of cervicitis. If the cause is an STD, both you and your partner need treatment. To avoid passing an infection along to your partner, abstain from sexual intercourse until treatment that was recommended is finished.
Attribution: Straight Talk Foundation