SANAA, Yemen -- Yemen's internationally recognized government and Shiite rebels who have controlled the capital Sanaa since September last year agreed Saturday to start a weeklong ceasefire on the eve of direct talks in Geneva, both sides confirmed.

President Abed Rabbo Mansour Hadi will order his commanders to halt all fire five minutes before midnight on Monday, said officials in Hadi's office, who spoke on condition of anonymity because they're not authorized to brief reporters.

"We have agreed to the ceasefire to lift the suffering of our people and to deliver humanitarian assistance to them," Mohammed Abdel Salam, the spokesman of the Shiite rebels known as Houthis, said Saturday at a news conference in Sanaa as the Houthi delegation prepared to depart for Geneva.

The fighting in Yemen pits the Houthis and troops loyal to former President Ali Abdullah Saleh against southern separatists, local and tribal militias, Sunni Islamic militants and Hadi's loyalists.

The internationally recognized government has long requested the unconditional implementation of a U.N. Security Council resolution that requires the rebels to withdraw from all areas they control and lay down arms captured in months of fighting.

Abdel Salam said the Houthi delegation will discuss the resolution at the talks in Geneva which begin Monday. But so far, the Houthis have not said they would agree to its terms.

The Security Council approved the resolution in April, after a Saudi-led coalition began launching airstrikes in March against the Houthi rebels in support of the internationally recognized government.