Serve external WP Blog as Sub Folder

Hi, for reasons beyond my control I have a Wordpress blog on a different domain.
I need to bring it into a subfolder.

So my setting is like this;

  • https://blog.com [the WP blog]
  • https://site.com [the company site - made in Framer]

What I need is to serve the blog from https://site.com/blog and that including the full url.

So

  • https://blog.com/hello-word
    would become
  • https:/site.com/blog/hello-world

What’s the best way of implementing this? How do I avoid duplicate content? (=Google finding both urls). How do I configure WP in such a case?

Any help is very much appreciated

We have recently published a guide on our blog that explains the process of hosting your WordPress blog on a subdirectory using Cloudflare workers.

Check it out here: https://shapo.io/blog/wordpress-blog-on-a-subdirectory-with-cloudflare/