'Point a subfolder of domain to top level of another domain

I want to achieve that https://domainA.com/folder shows the content of https://domainB.com without redirecting the user to domainB.

So it is important, that a user visiting domainA.com/subfolder remains on domainA but sees the content of domainB.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source