Wrexham drivers face a six-week closure on a busy route as gas mains are replaced later this month.