Ivory Coast has been split in two , with rebels in the north and the government in control of the south , since a failed coup attempt in 2002 .