Put pages in directories