Prescription medications can usually treat cervicitis. Your health care provider may decide against medication if the cause of the cervicitis is not an STI.