handling 404s in pages and posts