Updated

Republican Gov. Nikki Haley signed legislation Wednesday that immediately outlaws most abortions in South Carolina at 20 weeks beyond fertilization.

The only exceptions are if the mother's life is in jeopardy or a doctor determines the fetus can't survive outside the womb.

Doctors face up to $10,000 in fines and 3 years in prison for each violation; prison time is mandatory on a third conviction.

These bans are now in effect in at least 13 states and blocked by court challenges in several others. South Dakota's ban takes effect July 1.

Women nationwide have the right to obtain abortions under the U.S. Supreme Court's 1973 Roe v. Wade ruling, which said states could restrict abortions after viability — the point when a fetus has a reasonable chance of surviving outside the uterus. "Viability is usually placed at about seven months (28 weeks) but may occur earlier, even at 24 weeks," the ruling said.

The Supreme Court has yet to rule on bans that would limit even earlier abortions.

As in other states, South Carolina's law ties the fetus' age to conception, rather than a women's monthly cycle. But since this date cannot be scientifically pinpointed, the ban actually refers to what doctors consider a gestational age of 22 weeks.

Supporters of the bill cite the disputed claim that a fetus can feel pain at 20 weeks. Opponents say later-term abortions usually happen with wanted pregnancies that go horribly wrong.

"The reality is that abortion later in pregnancy is extremely rare and often takes place in complex and difficult situations where a woman and her doctor need every medical option available," said Alyssa Miller, a Planned Parenthood spokeswoman for South Carolina.

South Carolina's definition of "fetal anomaly" makes it illegal to abort a fetus with a severe disability if the child could live. Such anomalies are generally detected around 20 weeks.

Advocates for abortion rights contend these measures are aimed at restricting women's access to a safe, legal abortion.

The sponsor of South Carolina's law, state Rep. Wendy Nanney, said the killing needs to stop, and sees this law as a step to eventually "get rid of abortion altogether."

Haley's signature comes only days after Oklahoma Gov. Mary Fallin vetoed legislation to outlaw the procedure at any stage, by making it a felony for doctors to perform an abortion. Fallin, a Republican who opposes abortion, said the measure would not withstand a legal challenge.

Abortion-rights supporters rallied Tuesday at the Statehouse to ask Haley to veto the measure. But Haley's signature was no surprise.

"I'm strongly pro-life, very pro-life and not because my party tells me to be, but my husband was adopted, and so every day I know the blessings of having him there," Haley said during her 2010 campaign for governor.

As a House member that year, Haley voted to end abortion coverage for victims of rape and incest in the state health plan for employees. The Senate defeated that proposal.

In 2012, Haley signed a bill intended to ensure that a fetus surviving an abortion attempt is not treated as medical waste. It defined a person as anyone who is breathing and has a beating heart after birth, whether by labor, cesarean section, or abortion, copying a 2002 federal law enforceable on federal property.

The ban would affect only hospitals, since none of the three abortion clinics in South Carolina provide abortions beyond 15 weeks.

On average, fewer than 30 abortions yearly are performed at 20 weeks gestation or beyond in South Carolina, according to data since 1990 from the state's public health agency. Most of these women have been white, married and older than 24, according to the agency.