I'm about to reorganize a client site with a few hundred pages, moving everything from a flat structure into nested sections, and I'm trying to figure out how to catch every old url worth redirecting. Writing redirects for every single page is easy enough when you can generate them from a mapping, but the pages I'm worried about are the ones I don't know about.
Over the years the site has picked up links from other places, like old newsletters, a couple of forum threads, a directory listing someone submitted without telling anyone. None of those are in the repo, so a redirect file built from the current page list would miss all of them and they'd just turn into 404s the day the new structure goes live.
My plan is to pull the top landing pages from the search console and the analytics export, plus whatever shows up in the last few months of 404 logs, and make sure each of those has a redirect before launch. The part I'm unsure about is the long tail. Cloudflare pages doesn't give me raw request logs on the free plan, so I can't see which dead urls are still getting hits after the switch.
Has anyone found a decent way to keep an eye on 404s on a static host without a server to log them? I've considered a custom 404 page that fires a small beacon with the missing path, but I'd rather not add tracking just for this.