Ampicillin can be administered orally, intravenously, or intramuscularly. The route of administration often depends on the severity of the infection and the patient's condition. For instance, severe infections may require intravenous administration for more rapid and effective treatment.