A fertilized egg can't develop normally outside the uterus. To prevent life-threatening complications, the ectopic tissue must be removed.
If the ectopic pregnancy is detected early, an injection of the drug methotrexate may be used to stop cell growth and dissolve existing cells. After the injection, your health care provider will monitor your blood for the pregnancy hormone human chorionic gonadotropin (HCG). If the HCG level remains high, you may need another injection of methotrexate.
If the ectopic pregnancy doesn't respond to medication or you're unable to use methotrexate or return for monitoring, you may need laparoscopic surgery. In this procedure, the doctor makes a small incision in the lower abdomen, near or in the navel. Then he or she uses a thin tube equipped with a camera lens and light (laparoscope) to view the area. Other instruments can be inserted into the tube or through other small incisions to remove the ectopic tissue and repair the fallopian tube. If the fallopian tube is significantly damaged, it may need to be removed.
If the ectopic pregnancy is causing heavy bleeding or the fallopian tube has ruptured, you may need emergency surgery through an abdominal incision (laparotomy). In some cases, the fallopian tube can be repaired. Typically, however, the ruptured tube must be removed.
In a few cases, an injection of methotrexate is needed after surgery.
The above information thankfully comes from the Mayo Clinic.com at the following link.