sentence1: Both Madeira and Britain benefited from a new regulation that governed the shipment of Madeira wine and made it the only wine that could be exported directly to the British possessions in the Western hemisphere (providing, of course, it was carried by a British vessel).
sentence2: Britain allowed the export of Madeira wine only on the condition that it be aboard British ships.