Complex sentence: The legislation made concessions to the Huguenots in order to avoid their rebellion; it allowed them to worship publicly outside of towns and privately inside them.
Split into simpler sentences: The legislation made concessions to the Huguenots to avoid their rebelling. It allowed them to worship publicly outside of towns and privately inside them.