【问题标题】:Redirect Subfolder of one domain to another domain将一个域的子文件夹重定向到另一个域
【发布时间】:2012-08-13 15:55:18
【问题描述】:

我有两个域,domain1.com 和 domain2.com。我想将 domain1.com/subfolder 重定向到 domain2.com。

我知道这可以通过 .htaccess 使用:重定向 301 /subfolder/http://domain2.com/,将 .htaccess 文件放在 domain1.com 的根目录中。我面临的问题是重定向而不更改地址栏。这可能吗?

domain1.com 正在运行 IIS,而 domain2.com 正在运行 Apache。

我遇到的一个解决方案是在 domain1.com/subfolder/index.html 中放置一个 iFrame,但这会使地址栏变为静态。

【问题讨论】:

    标签: .htaccess redirect dns subdirectory


    【解决方案1】:

    您需要在托管 domain1.com 的 IIS 服务器上设置反向代理,here's a link that shows you how to do that

    【讨论】:

      猜你喜欢
      • 2016-01-03
      • 1970-01-01
      • 2013-04-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-22
      • 2021-12-19
      • 2014-10-09
      • 1970-01-01
      相关资源
      最近更新 更多