从一台服务器重定向到另一台服务器并保留 URL 之后的所有内容

I have successfully installed discourse in my new server(For ex: http://shop.com) but i installed my forum related shop in another server (Forex: http://example.com).

Implementation: I need to show the content from example.com but with URL as “http://shop.com/example”.

If it’s possible to redirect content from one server and URL as from new server. Is we need to setup apache server configuration or we can do in htaccess file.

Read this guide:

I check this post already but this is working on same server only. But it’s not working on different server. Let me know is there any possibility to configure two different servers.
For ex:

  1. Content loads from old server and discourse loads from new server.
  2. So, I will load new server URL but content should come from old URL.