【发布时间】:2011-12-01 22:33:51
【问题描述】:
我有一个网站,我需要将几乎所有内容重定向到另一个域,除了几个目录/路径。服务器在托管环境中运行 ColdFusion 和 IIS。
功能:
a) http://example1.com redirects to http://example2.com
b) http://example1.com/special stays put
c) http://example1.com/anydir redirects to http://example2.com
对我如何做到这一点有什么建议吗?
我考虑在 ColdFusion 中这样做,但这不能处理案例 c)。无法在 IIS 中重写 URL,因为这是托管服务提供商的限制。
编辑:
我刚刚意识到上面的功能没有明确说明这种情况:
d) http://example1.com/anydir/anydir redirects to http://example2.com
【问题讨论】:
标签: iis coldfusion windows-server