Next week a busy Dorset road will close for a month and see a 30-mile diversion route in its place.