【问题标题】:IIS 7 Url Rewrite with virtual directory使用虚拟目录重写 IIS 7 Url
【发布时间】:2016-04-15 18:14:48
【问题描述】:

我在 IIS7 中有一个 aspx 网站,根目录中有一个虚拟文件夹(称为“app”),这是另一个 aspx 应用程序。

我希望 www.main.com/section 显示来自 www.other.com/page 的内容。 但是,www.main.com/section/app,我想忽略之前的重定向(它会虚拟文件夹内容)。

我无法让它工作。这就是我所拥有的:

<rule name="Landing page" enabled="true">
  <match url="landing" />
  <action type="Rewrite" url="http://www.other.com/page" />
</rule>

这可能吗?

【问题讨论】:

标签: asp.net redirect url-rewriting iis-7


【解决方案1】:

感谢您的回答。

我想我必须使用url rewrite and Application Request Routing

【讨论】:

    猜你喜欢
    • 2015-09-25
    • 2015-02-06
    • 1970-01-01
    • 2011-09-19
    • 2011-02-12
    • 1970-01-01
    • 2017-05-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多