【问题标题】:IIS URL Rewrite down to a subfolderIIS URL 重写到子文件夹
【发布时间】:2013-11-08 03:46:36
【问题描述】:

我需要让 IIS URL 重写模块工作,但没有运气。

我需要做的是在不存在时将子文件夹(psms)“注入”到 url 中,如下所示: https://something.somewhere.com/acp/default.aspx?k=v

没有子文件夹 psms 所以重定向到https://something.somewhere.com/psms/acp/default.aspx?k=v

【问题讨论】:

标签: iis url-rewriting


【解决方案1】:

好的,psms是hosting的根目录; 你需要使用像

这样的表达式
<action type="Rewrite" url="acp/default.aspx?k={R:1}" />

【讨论】:

猜你喜欢
  • 2023-04-07
  • 2013-10-16
  • 2017-02-13
  • 2016-05-03
  • 2016-09-23
  • 2012-05-23
  • 2017-08-24
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多