redirect - 在 IIS web.config 中,我如何重定向 URL 并使子域成为子文件夹和子文件夹成为查询字符串
问题描述
在 azure app 服务中使用 web.config,如果我使用它
<rules>
<rule name="CName to URL" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^(?!www)(.*)\.example\.com$" />
</conditions>
<action type="Redirect" url="http://example.com/{C:1}" />
</rule>
</rules>
我可以将它从 d0036.example.com 更改为 example.com/d0036
但是,我似乎无法从 d0036.example.com/path1/path2 到 example.com/d0036?p1=path1&p2=path2
解决方案
推荐阅读
- html - 如何在 Bootstrap 4 中添加新的大断点(仅限 CSS)
- java - .contains() 问题/看起来不起作用
- javascript - 如何在 Java 代码(按钮)中使用 WHILE 循环中的 PHP 变量?
- java - 为 Eclipse 2020-03 (4.15) 插件安装 Java 14 支持时出现 Eclipse 错误
- flutter - 如果推送的pageA被pageB替换,如何得到结果
- numpy - 在 Python 中提取边缘 PDF
- javascript - 如何从功能组件向 redux 存储发送数据?
- excel - VBA将文本转换为多个工作表中的列,除了一个
- java - 更新包含列表的数据时,restTemplate.put 给出“无法反序列化 java.util.ArrayList 的实例超出 START_OBJECT”
- awk - 使用 Bash 将两列(分隔)相乘