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

**URL:** <https://meta.discourse.org/t/redirect-from-one-server-to-another-server-and-keep-everything-after-the-url/110713>\
**Category:** Self-hosting\
**Created:** [2019年三月5日 09:07 UTC](https://meta.discourse.org/t/redirect-from-one-server-to-another-server-and-keep-everything-after-the-url/110713 "2019-03-05T09:07:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajpriya](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rajpriya/32/127854_2.png) [@rajpriya](https://meta.discourse.org/u/rajpriya)\
**Post date:** [2019年三月5日 09:07 UTC](https://meta.discourse.org/t/redirect-from-one-server-to-another-server-and-keep-everything-after-the-url/110713/1 "2019-03-05T09:07:59Z")

</div>

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

Implementation: I need to show the content from [example.com](http://example.com) but with URL as “[http://shop.com/example](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.

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chaboi_3000/32/163015_2.png) [@Chaboi\_3000](https://meta.discourse.org/u/Chaboi_3000)\
**Post date:** [2019年三月5日 10:42 UTC](https://meta.discourse.org/t/redirect-from-one-server-to-another-server-and-keep-everything-after-the-url/110713/2 "2019-03-05T10:42:40Z")

</div>

Read this guide:

> [@Serve Discourse from a subfolder (path prefix) instead of a subdomain](https://meta.discourse.org/t/subfolder-support-with-docker/30507):
>
> warning Discourse Official Statement about Subfolder setup We support subfolder setups for our hosted customers at the enterprise level and up. Due to heavy technical setup complexity we strongly recommend you do not use this setup unless you are very experienced in custom subfolder setups. It is critical you have a deep understanding of NGINX setup in the Discourse Docker container Secure original IP forwarding using custom headers in the proxy chain Rate limiting in front proxy server I…

---

<div class="post-metadata">

**Author:** ![rajpriya](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rajpriya/32/127854_2.png) [@rajpriya](https://meta.discourse.org/u/rajpriya)\
**Post date:** [2019年三月5日 11:16 UTC](https://meta.discourse.org/t/redirect-from-one-server-to-another-server-and-keep-everything-after-the-url/110713/3 "2019-03-05T11:16:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2022年四月13日 05:08 UTC](https://meta.discourse.org/t/redirect-from-one-server-to-another-server-and-keep-everything-after-the-url/110713/4 "2022-04-13T05:08:38Z")

</div>


