如何在重写配置中对请求URL进行子串?
例如:
www.domain.com/some-request)
->
www.domain.com/some-request
只需从网址末尾删除一个字母。
修改: 我希望能够从url rewrite模块配置中执行此操作,如下所示:
<rule name="Redirect to HTTPS" stopProcessing="true">
<match url="(.*)" />
<conditions><add input="{HTTPS}" pattern="^OFF$" /></conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />
</rule>