Catch-all fallback with Cloudflare Workers KV

I need to create a catch-all fallback, as I am hosting on Cloudflare workers. This article describes how to do it for various different platforms: (nginx, apache, etc) but not for Cloudflare workers. Could anybody help me with the correct approach to create this fallback?

A post was merged into an existing topic: Workers htaccess/ rewrite url