Proxying domain content to a second domain on the same host


Is it possible to proxy a site to a second domain on the same host? I tried the method through mod_rewrite, but it doesn't work because the links are not replaced in the displayed content.

How to do it?

I want to display this content under the link:

I have no idea.

I managed to display the content, but mod_rewrite is not replacing the links.
The domain is displaying links to
But it should be

I want to replace any links from to under proxy