url - 添加一个“?” 使用 IIS URL 重写
问题描述
我需要创建一个 URL 重写,以便当用户键入:mydomain.com/test123 时,服务器会得到:mydomain.com/?test123。
我试过这个:
<rule name="UF" stopProcessing="true">
<match url="example.com/([_0-9a-z-]+)" />
<action type="Redirect" url="https://example.com/?{R:1}" />
</rule>
解决方案
推荐阅读
- java - 无需重新编译和重建应用程序即可更改 Hibernate xml 映射文件
- html - 如何从引导菜单中删除活动类
- android - 构建 Android 应用时如何从 gradle 生成 OpenAPI 源
- java - 如何从 MaterialDatePicker 获取日期?
- laravel - 如何在后台运行脚本、命令并终止请求?
- firebase - Firebase Cloud Storage 签名的 url 上传失败,并显示“匿名调用者没有 storage.objects.create 访问权限”
- c++ - 我可以在不知道类型参数的情况下持有 shared_ptr 吗?
- python - 无法将 Numpy 数组转换为图像
- c# - 如何模拟测试类中私有对象的方法
- swift - 管理在 SpriteKit 场景中可见的 UI 动画