The Bible also makes it clear that it is wrong to have sex outside of marriage.
Interesting side-note,
The Bible permits divorce and remarriage ONLY when a spouse has been unfaithful
before marriage, and it’s not revealed until afterwards. There are no scriptures that permit divorce for adultery—only fornication.
[LINK]
Okay, I read your link. Let me give you my view. I was/am not aware of this "before" bit.
Matthew 19:8-9
8 He *said to them, “Because of your hardness of heart Moses permitted you to divorce your wives; but from the beginning it has not been this way. 9 And I say to you, whoever divorces his wife, except for immorality, and marries another woman commits adultery.”
Thus, God gives one exception for remarriage, immorality. Sexual immorality/adultery.
Marriage has spiritual significance for the Christian and a lesson for all of us. Those two points are God's intent in Eden in which God says a man shall leave his parents and be united with his wife and the two will become one flesh. God gives us an example of a physical union that points to a greater truth, a spiritual truth. God gives the example of Adam and Eve as an teaching of far greater significance, our spiritual union with Him. So marriage is a sacred union - a covenant. It is an intimate union between two people and also a lifetime commitment/covenant, until death.
Adultery is being unfaithful to that union or covenant.
God, in the OT, compares Himself to a husband under a covenant. Yet, when Israel (the northern kingdom) commits adultery He divorces her. And Judah also commits adultery and God continually warns her of her promiscuity and warns of the consequences. Finally, in the NT God divorces her too, and takes for Himself a new wife (the Bride of Christ) as He promised He would in the OT. The destruction of Jerusalem and the judgment of Israel in AD 70 is God's letter of divorce against them for adultery. That covenant with OT Israel came to an end in AD 70. After that point in time, Israel (as a whole, not specifically speaking of the Northern Kingdom which had previously been divorced) was no longer able to keep the covenant in the manner they had agreed to do. They could no longer meet the atonement of sin in the prescribed manner after that point in time. They no longer had the representation of the High Priest as their mediator after that point. There was no longer offered animal sacrifices for sin after that point. The feast days could not be met in a specifically prescribed manner as laid out by the Law of Moses.
Thus Jesus could say,
Matthew 5:17-18 (NASB)
17 “Do not think that I came to abolish the Law or the Prophets; I did not come to abolish but to fulfill. 18 For truly I say to you, until heaven and earth pass away, not the smallest letter or stroke shall pass from the Law until all is accomplished.
In AD 70 their heaven and earth passed away, everything they lived under and experienced under the covenant came to an end. Now, the letters of the law could no longer be met for the very reason that there was now a better covenant that God had established with humanity, the "new Israel of God," the new Bride, a covenant for NT believers, whether Jew or Gentile.
***
So, even God divorces and remarriage for adultery. He is our example.