Worker to redirect to new URL doesn't work

Hey everyone!

I am trying to set up a blog on my website per this post - https://blog.cloudflare.com/subdomains-vs-subdirectories-improved-seo-part-2. So, my website is hosted at https://remotework2020.com and I want https://remotework2020.com/officiano to render content from https://theremoteweekly.com (or a Netlify domain).

I have set up a worker with the route .remotework2020.com/ and the code for the worker is identical to the one in the post. I can see the evaluations happening correctly (through console log), however, it just throws up 404 error when I go to the subdirectory.