Not sure what version's prefered (although I checked several to make sure the fairly unambiguous meaning wasn't markedly different), but here's the section on the 'punishment' for a man trying to have his wife killed:
If any man takes a wife, and goes in to her, and detests her, 14 and charges her with shameful conduct, and brings a bad name on her, and says, ‘I took this woman, and when I came to her I found she was not a virgin,’ 15 then the father and mother of the young woman shall take and bring out the evidence of the young woman’s virginity to the elders of the city at the gate. 16 And the young woman’s father shall say to the elders, ‘I gave my daughter to this man as wife, and he detests her. 17 Now he has charged her with shameful conduct, saying, “I found your daughter was not a virgin,” and yet these are the evidences of my daughter’s virginity.’ And they shall spread the cloth before the elders of the city. 18 Then the elders of that city shall take that man and punish him; 19 and they shall fine him one hundred shekels of silver and give them to the father of the young woman, because he has brought a bad name on a virgin of Israel. And she shall be his wife; he cannot divorce her all his days.
20 “But if the thing is true, and evidences of virginity are not found for the young woman, 21 then they shall bring out the young woman to the door of her father’s house, and the men of her city shall stone her to death with stones
In other words, husband falsely accuses wife of not being a virgin prior to marrying him, knowing that unless her parents can prove otherwise she'll be stoned to death. He's given a fine, while the woman he tried to have killed is forced to stay married to him.
And the section on stoning rape victims is a bit later on in that same section:
If a young woman who is a virgin is betrothed to a husband, and a man finds her in the city and lies with her, 24 then you shall bring them both out to the gate of that city, and you shall stone them to death with stones, the young woman because she did not cry out in the city, and the man because he humbled his neighbor’s wife; so you shall put away the evil from among you.
25 “But if a man finds a betrothed young woman in the countryside, and the man forces her and lies with her, then only the man who lay with her shall die. 26 But you shall do nothing to the young woman; there is in the young woman no sin deserving of death, for just as when a man rises against his neighbor and kills him, even so is this matter. 27 For he found her in the countryside, and the betrothed young woman cried out, but there was no one to save her.
In other words, if you're engaged and are raped in the city you'll be stoned to death for the 'crime' of being raped.
As if that's not enough, it then says that if you're raped and you're not engaged, you're forced to marry your rapist!!!
If a man finds a young woman who is a virgin, who is not betrothed, and he seizes her and lies with her, and they are found out, 29 then the man who lay with her shall give to the young woman’s father fifty shekels of silver, and she shall be his wife
The section you are referring to is the part I already mentioned in my original post (rape victims can avoid death by being raped in the countryside) - if you're raped in the countryside then only the rapist is killed, not the rape victim (although this is only if you're engaged; if you're not engaged and are raped in the countryside then you'll still have to marry your rapist).