【问题标题】:Remove trailing keywords after localhost删除 localhost 之后的尾随关键字
【发布时间】:2017-03-10 03:05:08
【问题描述】:

我有一个托管在 IIS 中的本地系统中的站点,该站点具有这样的 URL 模式

https://localhost/something

当我点击 url 时,我需要加载同一个网站

https://localhost

为此我需要做什么 IIS 设置?

请注意,本网站是一个网络应用程序,而不是一个网站项目。

【问题讨论】:

    标签: .net url iis dns hosting


    【解决方案1】:

    您需要使用 URL Rewrite 组件。它可以从 Web Platform Installer 安装。

    这是简单的设置:

    <rule name="target redirect" stopProcessing="true">
     <match url="^target$" />
     <action type"redirect" url="/newlocation" />
    </rule>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-03
      • 2021-09-26
      • 2020-08-20
      • 1970-01-01
      • 2015-12-23
      • 2011-05-30
      相关资源
      最近更新 更多