Patients undergoing elective laparoscopic or laparotomic surgery for rectal cancer with extraperitoneal anastomosis , will be randomly allocated to undergo either lateral ileostomy or percutaneous ileostomy by exclusion probe .