Fix 404 redirect when posts not found