Hundreds of thousands of Gazans sought shelter as Israeli forces advanced into the ruins of the city of Rafah.