Hundreds of thousands of people have been forced from their homes in recent weeks as a result of the rebel advance.